When searching in visual mode switch to normal mode
This matches Neovim behaviour by setting the mode to `Normal` when using search while in visual mode. Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
0858db9ebb
commit
87be105af7
3 changed files with 39 additions and 4 deletions
|
@ -73,9 +73,7 @@ impl KeystrokeMatcher {
|
|||
if !found_actions.is_empty() {
|
||||
self.pending_keystrokes.clear();
|
||||
return KeyMatch::Some(found_actions);
|
||||
}
|
||||
|
||||
if let Some(pending_key) = pending_key {
|
||||
} else if let Some(pending_key) = pending_key {
|
||||
self.pending_keystrokes.push(pending_key);
|
||||
KeyMatch::Pending
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue