Skip to content

Commit

Permalink
Backspace and Delete on linestart/end
Browse files Browse the repository at this point in the history
react correctly on linestart and lineend on Backspace and Delete when using multipe cursors
  • Loading branch information
CennoxX authored and dail8859 committed May 14, 2022
1 parent f2248b5 commit 0a0ee31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,14 @@ LRESULT CALLBACK KeyboardProc(int ncode, WPARAM wparam, LPARAM lparam) {
EditSelections(SimpleEdit(IsShiftPressed() ? SCI_LINEENDWRAPEXTEND : SCI_LINEENDWRAP));
return TRUE;
}
else if (wparam == VK_BACK) {
EditSelections(SimpleEdit(SCI_DELETEBACK));
return TRUE;
}
else if (wparam == VK_DELETE) {
EditSelections(SimpleEdit(SCI_CLEAR));
return TRUE;
}
else if (wparam == VK_RETURN) {
if (!editor.AutoCActive()) {
EditSelections(SimpleEdit(SCI_NEWLINE));
Expand Down

0 comments on commit 0a0ee31

Please sign in to comment.