Skip to content
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

Canceling a search retains options #302

Closed
gwsw opened this issue Nov 13, 2022 · 1 comment
Closed

Canceling a search retains options #302

gwsw opened this issue Nov 13, 2022 · 1 comment

Comments

@gwsw
Copy link
Owner

gwsw commented Nov 13, 2022

Canceling a search before executing retains search options in the next "n" command.

To reproduce,

  1. Run seq 200 | less.
  2. Enter /5 and press Enter.
  3. Enter / and ctrl-N to start a no-match search, then press Erase to cancel the search.
  4. Enter n to repeat the previous search.

Expected: should move to the next line containing a 5.
Actual: moves to the next line which does NOT contain a 5.

This is related to #299.

@gwsw
Copy link
Owner Author

gwsw commented Nov 14, 2022

Fixed in afb59e1.

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