about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.lua b/main.lua
index a4eb1c8..8e3641c 100644
--- a/main.lua
+++ b/main.lua
@@ -39,12 +39,7 @@ Lines = {{mode='text', data=''}}
 Screen_top_line = 1
 Screen_bottom_line = 1
 Cursor_line = 1
--- this is a line
--- ^cursor_pos = 1
---  ^cursor_pos = 2
---   ...
---               ^cursor_pos past end of line is 15
-Cursor_pos = 1  -- in Unicode codepoints
+Cursor_pos = 1  -- in Unicode codepoints, from 1 to utf8.len(line) + 1
 
 Screen_width, Screen_height, Screen_flags = 0, 0, nil