about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-17 22:05:00 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-17 22:05:00 -0700
commit61845c335bfd087292248346361ac7a5315103aa (patch)
tree2657d67f7d84b64d1763473b5aa4eec6c26a0c48 /main.lua
parent319617141b296f23cc6130f1fddf4ea0fdc08183 (diff)
downloadlines.love-61845c335bfd087292248346361ac7a5315103aa.tar.gz
.
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index ea6b470..9d5fdd8 100644
--- a/main.lua
+++ b/main.lua
@@ -42,7 +42,7 @@ Cursor_line = 1
 --  ^cursor_pos = 2
 --   ...
 --               ^cursor_pos past end of line is 15
-Cursor_pos = #Lines[Cursor_line].data+1
+Cursor_pos = #Lines[Cursor_line].data+1  -- in Unicode codepoints
 
 Screen_width, Screen_height, Screen_flags = 0, 0, nil