Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

* and # behave differently with counts #5

Open
danth opened this issue May 26, 2020 · 0 comments
Open

* and # behave differently with counts #5

danth opened this issue May 26, 2020 · 0 comments
Labels
bug Something isn't working properly

Comments

@danth
Copy link
Owner

danth commented May 26, 2020

Say we start on [ at the end of line 2, and find a path to the beginning of "weight" on line 13.

https://github.com/AlphaMycelium/pathfinder.vim/blob/59a07b40981cec9f5f12c6472b8065bc328731d7/plugin/main.vim#L1-L14

The pathfinder returns 2*. That is made from:

  • * to search for the next [ (on line 12)
  • * again to search for "weight", which moves down to the next line

However, running 2* instead of ** causes [ to be searched twice, and ends up somewhere else.

@danth danth added the bug Something isn't working properly label May 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

1 participant