diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 16:39:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 16:39:42 -0700 |
commit | 800a5c064aeb6978928854e74a289702355f00f2 (patch) | |
tree | 161a9a8b10200a2b973363c499ebdc647eab53c8 /edit.lua | |
parent | adeb5416c61c7a5face4f082fee32e70a0e69203 (diff) | |
download | lines.love-800a5c064aeb6978928854e74a289702355f00f2.tar.gz |
add state arg to a few functions
- Text.insert_at_cursor - Text.insert_return - Text.pageup - Text.pagedown - Text.up - Text.down - Text.start_of_line - Text.end_of_line - Text.word_left - Text.word_right
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua index 9e5aabb..f4d2c6c 100644 --- a/edit.lua +++ b/edit.lua @@ -386,9 +386,9 @@ function edit.keychord_pressed(State, chord, key) for _,code in utf8.codes(clipboard_data) do local c = utf8.char(code) if c == '\n' then - Text.insert_return() + Text.insert_return(State) else - Text.insert_at_cursor(c) + Text.insert_at_cursor(State, c) end end if Text.cursor_past_screen_bottom() then |