From 0218980add27e3910b4fecc6715cedea81076081 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 29 Jul 2022 14:38:45 -0700 Subject: click to the left of a line --- edit.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'edit.lua') 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') -- cgit 1.4.1-2-gfad0