about summary refs log tree commit diff stats
path: root/source_edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-04-03 08:33:07 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-04-03 08:33:07 -0700
commit282983d0848db077c0dd6400a6f29b34f78f5806 (patch)
treef5711ef3ebc3eb83280d566a13d91f0577971dab /source_edit.lua
parent95342345a827616c9f5fa7c914c02505d9e6ff4d (diff)
downloadlines.love-282983d0848db077c0dd6400a6f29b34f78f5806.tar.gz
switch source side to new screen-line-based render
Also copy over the implementation of links from pensieve.love.
Diffstat (limited to 'source_edit.lua')
-rw-r--r--source_edit.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/source_edit.lua b/source_edit.lua
index 5dabee9..ceb2f43 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -184,7 +184,6 @@ function edit.draw(State, hide_cursor)
         })
       end
       y, State.screen_bottom1.pos = Text.draw(State, line_index, y, startpos, hide_cursor)
-      y = y + State.line_height
 --?       print('=> y', y)
     elseif line.mode == 'drawing' then
       y = y+Drawing_padding_top
@@ -508,7 +507,6 @@ function edit.update_font_settings(State, font_height)
   State.font_height = font_height
   love.graphics.setFont(love.graphics.newFont(State.font_height))
   State.line_height = math.floor(font_height*1.3)
-  Text_cache = {}
 end
 
 --== some methods for tests