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

Strange search behavior #37

Closed
schickling opened this issue Jan 10, 2014 · 6 comments
Closed

Strange search behavior #37

schickling opened this issue Jan 10, 2014 · 6 comments

Comments

@schickling
Copy link

Scenario:
I'm searching the official Rails repo (cloned on my machine) for the word "DHH" and get a lots of results.

screenshot 2014-01-11 00 29 08

When I'm now closing the results and search again for "DHH" I just get one result.

screenshot 2014-01-11 00 29 24

I tried this outside of vim and it worked like expected and didn't produce this odd behavior.

PS: I'm not sure if this is intended, if yes, a short description in the Readme would be nice.

@losingkeys
Copy link
Collaborator

So it looks like your first search opened the first match (using :Ag! DHH won't do that if you don't like that); then I'm thinking you narrowed the search to just that file (something like :Ag DHH %), where there is only one match. What were the commands you ran?

@schickling
Copy link
Author

Both times :Ag DHH. Since I entered the same commands, I kinda expect the same results.

@losingkeys
Copy link
Collaborator

I can't reproduce with 0033cc3 (origin/HEAD), which sha are you at? Are you setting g:ag... options?

@schickling
Copy link
Author

I'm don't have any additional options specified. Here is what I did: http://asciinema.org/a/7133

@losingkeys
Copy link
Collaborator

@schickling Hey, do you mind re-testing with the latest (c268f83)? I just grabbed the latest, re-cloned rails, commented all g:ag.. options in my ~/.vimrc, and couldn't reproduce (which is odd because i think I could duplicate this before). Let me know if it's still broken; thanks!

@schickling
Copy link
Author

Seems fine now! 👍 Thanks!

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

2 participants