about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-05 10:30:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-05 10:30:23 -0700
commita70d7ba8bc8a7aeff6bb0004f73eb5620dcf8dca (patch)
treecaeffb315f824be944ce96d463fd0163239860ae
parentd043745ccdfe55cb5d2cddb2bbff61406245c6f0 (diff)
downloadlines.love-a70d7ba8bc8a7aeff6bb0004f73eb5620dcf8dca.tar.gz
.
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index bb48ba3..d5a332d 100644
--- a/main.lua
+++ b/main.lua
@@ -336,7 +336,7 @@ function App.keychord_pressed(chord)
         Text.insert_return()
         num_newlines = num_newlines+1
       else
-        Text.insert_at_cursor(utf8.char(code))
+        Text.insert_at_cursor(c)
       end
     end
     -- hack 1: if we have too many newlines we definitely need to scroll