about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-02 19:08:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-02 19:08:06 -0700
commit9121a263a69571830425ee2f8c2b5a96e3e26f6c (patch)
tree586d86fa30cc341b372b94867da4ad9b2376baf5 /main.lua
parent51f4f13ecc39316c0115f617729ca699e13893e3 (diff)
downloadtext.love-9121a263a69571830425ee2f8c2b5a96e3e26f6c.tar.gz
.
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index b8f2ee7..8917f8e 100644
--- a/main.lua
+++ b/main.lua
@@ -128,7 +128,7 @@ function App.draw()
   for line_index,line in ipairs(Lines) do
     line.y = nil
   end
-  assert(Screen_top1.line < Cursor1.line or (Screen_top1.line == Cursor1.line and Screen_top1.pos <= Cursor1.pos))
+  assert(Text.le1(Screen_top1, Cursor1))
   local y = 15
 --?   print('== draw')
   for line_index,line in ipairs(Lines) do