forked from zed-industries/zed
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vim: Retain search direction upon search submit (zed-industries#16754)
Before, when using `?` and `#` for backwards search it would initially search for the previous match, but upon subsequent inputs to `n` and `N`, `n` is always treated as "forward" and `N` is always treated as "backward", instead of continuing the search direction. now, if i use `?` or `#` for backward search, `n` will go to the previous selection, and `N` will go to the next. Functionality stays the same for `/` and `*`. Release Notes: - vim: Fixed `n` direction after searching backwards --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
- Loading branch information
1 parent
bef575e
commit cfc3b7d
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{"Put":{"state":"ˇa b a b a b a"}} | ||
{"Key":"*"} | ||
{"Key":"n"} | ||
{"Get":{"state":"a b a b ˇa b a","mode":"Normal"}} | ||
{"Key":"#"} | ||
{"Get":{"state":"a b ˇa b a b a","mode":"Normal"}} | ||
{"Key":"n"} | ||
{"Get":{"state":"ˇa b a b a b a","mode":"Normal"}} |