about summary refs log tree commit diff stats
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
parent319617141b296f23cc6130f1fddf4ea0fdc08183 (diff)
downloadview.love-61845c335bfd087292248346361ac7a5315103aa.tar.gz
.
-rw-r--r--README.md1
-rw-r--r--main.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index f4c4191..7c6ddf7 100644
--- a/README.md
+++ b/README.md
@@ -2,3 +2,4 @@ Known issues:
 * Touchpads can drag the mouse pointer using a light touch or a heavy click.
   On Linux, drags using the light touch get interrupted when a key is pressed.
   You'll have to press down to drag.
+* No support yet for Unicode graphemes spanning multiple codepoints.
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