diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-19 21:59:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-19 21:59:56 -0700 |
commit | c9e69530a0cea5f43ef009b09cf54b039e122dfe (patch) | |
tree | d5ce0f7203ec7695d9ad761532f684af156f04f6 | |
parent | 839d2df3eaa1bf29f00ebec8eeba4b8c8a158852 (diff) | |
download | lines.love-c9e69530a0cea5f43ef009b09cf54b039e122dfe.tar.gz |
comment
-rw-r--r-- | main.lua | 7 |
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 |