8000 n / N commands should honor search direction · Issue #260 · vit-project/vit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

n / N commands should honor search direction #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fdela opened this issue Jul 28, 2020 · 0 comments
Closed

n / N commands should honor search direction #260

fdela opened this issue Jul 28, 2020 · 0 comments

Comments

@fdela
Copy link
Collaborator
fdela commented Jul 28, 2020

Describe the bug
After you search for a string using '/' or '?', subsequent n / N do not honor search direction, i.e. n always searches top-to-bottom and N bottom-to-top.
This works differently from vi where n (N) searches for the next (previous) occurence based on the search direction.

To Reproduce
Search reverse for a string using ? string1
Type n to search for next occurence -> is one lower on the screen

Search reverse for a string using ? string2
Type N to search for previous occurence -> is one higher on the screen

Expected behavior
Next string1 occurence should be higher on the screen
Previous string2 occurence should be one lower on the screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0