diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-03-17 22:17:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-03-17 22:17:23 -0700 |
commit | 6709b394fba8dbc8cdfaaf3a9461e79ce7b0c2e0 (patch) | |
tree | 044d33b611085c7ac334731e129df59124cea885 /source_text.lua | |
parent | 675d1cbbdf026313d682086e1652a69540f18334 (diff) | |
download | text.love-6709b394fba8dbc8cdfaaf3a9461e79ce7b0c2e0.tar.gz |
more bugfix
Don't crash on showing the log browser.
Diffstat (limited to 'source_text.lua')
-rw-r--r-- | source_text.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source_text.lua b/source_text.lua index 1c91f28..fb4c389 100644 --- a/source_text.lua +++ b/source_text.lua @@ -689,7 +689,7 @@ function Text.snap_cursor_to_bottom_of_screen(State) --? print('to2: =>', top2.line, top2.screen_line, top2.screen_pos) -- slide to start of screen line top2.screen_pos = 1 -- start of screen line ---? print('snap', State.screen_top1.line, State.screen_top1.pos, State.screen_top1.posB, State.cursor1.line, State.cursor1.pos, State.screen_bottom1.line, State.screen_bottom1.pos) +--? print('snap', State.screen_top1.line, State.screen_top1.pos, State.cursor1.line, State.cursor1.pos, State.screen_bottom1.line, State.screen_bottom1.pos) --? print('cursor pos '..tostring(State.cursor1.pos)..' is on the #'..tostring(top2.screen_line)..' screen line down') local y = App.screen.height - State.line_height -- duplicate some logic from love.draw |