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

Move reading count at the begining of searchsyn #233

Merged
merged 1 commit into from Oct 17, 2014
Merged

Move reading count at the begining of searchsyn #233

merged 1 commit into from Oct 17, 2014

Conversation

ceigel
Copy link
Contributor

@ceigel ceigel commented Oct 17, 2014

In a ruby program with more than one function, typing 2]m would jump to the first beginning of method, not the second one, as expected. This is because, in searchsyn v:count is read after other commands are run. This leads to count being ignored for all the method jumps.

This change moves initialization of cnt variable in searchsyn to the beginning of the method, and also uses v:count1.

tpope added a commit that referenced this pull request Oct 17, 2014
Move reading count at the begining of searchsyn
@tpope tpope merged commit 5e429a5 into vim-ruby:master Oct 17, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants