diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-02-04 09:31:36 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-02-04 09:31:36 -0800 |
commit | 83722db5e432ade410e651aaf55538345c5c14ad (patch) | |
tree | 41f45a24808d7e394df320f4a7c9f417326cf2e9 | |
parent | 1d1a829d5b1f89220ebb261d8d01f34652fcd7b2 (diff) | |
download | lines.love-83722db5e432ade410e651aaf55538345c5c14ad.tar.gz |
bugfix: don't clear selection on M-arrow
We now treat all arrow chords as cursor movement. Many thanks to Ryan Kessler (https://tone.support) for reporting this issue.
-rw-r--r-- | edit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.lua b/edit.lua index 70f3950..bc85a93 100644 --- a/edit.lua +++ b/edit.lua @@ -394,7 +394,7 @@ function edit.keychord_press(State, chord, key) -- printable character created using shift key => delete selection -- (we're not creating any ctrl-shift- or alt-shift- combinations using regular/printable keys) (not App.shift_down() or utf8.len(key) == 1) and - chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and chord ~= 'delete' and chord ~= 'C-z' and chord ~= 'C-y' and not App.is_cursor_movement(chord) then + chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and chord ~= 'delete' and chord ~= 'C-z' and chord ~= 'C-y' and not App.is_cursor_movement(key) then Text.delete_selection(State, State.left, State.right) end if State.search_term then |