From c9e69530a0cea5f43ef009b09cf54b039e122dfe Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 19 May 2022 21:59:56 -0700 Subject: comment --- main.lua | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit 1.4.1-2-gfad0