about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-29 14:38:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-29 14:38:45 -0700
commit0218980add27e3910b4fecc6715cedea81076081 (patch)
tree9d81547ce67224a2ceea214c1e378024f2470962 /edit.lua
parent1e6b9e25aaa0a9012b72ffe013bd4961a04cea5d (diff)
downloadtext.love-0218980add27e3910b4fecc6715cedea81076081.tar.gz
click to the left of a line
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua
index 9e32c8c..7006da8 100644
--- a/edit.lua
+++ b/edit.lua
@@ -131,9 +131,11 @@ end
 
 function edit.draw(State)
   App.color(Text_color)
---?   print(State.screen_top1.line, State.screen_top1.pos, State.cursor1.line, State.cursor1.pos)
   assert(#State.lines == #State.line_cache)
-  assert(Text.le1(State.screen_top1, State.cursor1))
+  if not Text.le1(State.screen_top1, State.cursor1) then
+    print(State.screen_top1.line, State.screen_top1.pos, State.cursor1.line, State.cursor1.pos)
+    assert(false)
+  end
   State.cursor_y = -1
   local y = State.top
 --?   print('== draw')