about summary refs log tree commit diff stats
path: root/source_text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-05-14 17:31:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-05-14 17:31:55 -0700
commit0f3841f1861d0d8ff4d86425769127e12cf5673c (patch)
treeff125d3c4f6f0c8f455a7121bf7543cbde956367 /source_text.lua
parent0d96fbe86038ef84bf24a9e893e15971db535d84 (diff)
parenteb55e18e1dc6f45cdd26b815467f0bd2bf801787 (diff)
downloadview.love-0f3841f1861d0d8ff4d86425769127e12cf5673c.tar.gz
Merge lines.love
Diffstat (limited to 'source_text.lua')
-rw-r--r--source_text.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/source_text.lua b/source_text.lua
index ae5f88c..290d982 100644
--- a/source_text.lua
+++ b/source_text.lua
@@ -486,6 +486,7 @@ end
 function Text.down(State)
   assert(State.lines[State.cursor1.line].mode == 'text')
 --?   print('down', State.cursor1.line, State.cursor1.pos, State.screen_top1.line, State.screen_top1.pos, State.screen_bottom1.line, State.screen_bottom1.pos)
+  assert(State.cursor1.pos)
   if Text.cursor_at_final_screen_line(State) then
     -- line is done, skip to next text line
 --?     print('cursor at final screen line of its line')