about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-19 22:56:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-19 22:56:55 -0700
commitd6220432848f3ad9e1276cc9ccfdba0b113adaf7 (patch)
treedd1ecb4c1479df6ca108a0ab82476878373101a8 /text.lua
parenta7c7fd6bce32256350cede6cea8c96ad6ecf1366 (diff)
downloadlines.love-d6220432848f3ad9e1276cc9ccfdba0b113adaf7.tar.gz
planning out cursor up/down over wrapped lines
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.lua b/text.lua
index c14a60d..07931ea 100644
--- a/text.lua
+++ b/text.lua
@@ -213,6 +213,7 @@ function Text.keychord_pressed(chord)
     save_to_disk(Lines, Filename)
   elseif chord == 'up' then
     assert(Lines[Cursor_line].mode == 'text')
+    -- previous text line
     local new_cursor_line = Cursor_line
     while new_cursor_line > 1 do
       new_cursor_line = new_cursor_line-1
@@ -228,6 +229,7 @@ function Text.keychord_pressed(chord)
     end
   elseif chord == 'down' then
     assert(Lines[Cursor_line].mode == 'text')
+    -- next text line
     local new_cursor_line = Cursor_line
     while new_cursor_line < #Lines do
       new_cursor_line = new_cursor_line+1