diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-29 14:38:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-29 14:38:45 -0700 |
commit | 0218980add27e3910b4fecc6715cedea81076081 (patch) | |
tree | 9d81547ce67224a2ceea214c1e378024f2470962 /edit.lua | |
parent | 1e6b9e25aaa0a9012b72ffe013bd4961a04cea5d (diff) | |
download | text.love-0218980add27e3910b4fecc6715cedea81076081.tar.gz |
click to the left of a line
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 6 |
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') |