diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-06-09 20:38:53 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-06-09 20:38:53 -0700 |
commit | 19615eade0106ad5a3a988b3f1f257367aceb7ec (patch) | |
tree | 4adba0beb5b7e9edd93d02d62c34d92b2332c5ea | |
parent | 9b5a78d3c507a616a59e2933b061603b1e421695 (diff) | |
download | view.love-19615eade0106ad5a3a988b3f1f257367aceb7ec.tar.gz |
bugfix in source editor: don't clear selection on M-arrow
-rw-r--r-- | source_edit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source_edit.lua b/source_edit.lua index 1e8259c..53b50eb 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -399,7 +399,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 |