Skip to content

Commit

Permalink
Implement <Del> in command/search mode
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Fields authored and stevenguh committed Sep 2, 2019
1 parent 2020345 commit c9fd63b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ class CommandInsertInSearchMode extends BaseCommand {
['<C-n>'],
['<Home>'],
['<End>'],
['<Del>'],
];
isJump = true;

Expand Down Expand Up @@ -924,6 +925,10 @@ class CommandInsertInSearchMode extends BaseCommand {
position,
vimState
);
} else if (key === '<Del>') {
searchState.searchString =
searchState.searchString.slice(0, vimState.statusBarCursorCharacterPos) +
searchState.searchString.slice(vimState.statusBarCursorCharacterPos + 1);
} else if (key === '<Home>') {
vimState.statusBarCursorCharacterPos = 0;
} else if (key === '<End>') {
Expand Down

0 comments on commit c9fd63b

Please sign in to comment.