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

after/plugin/lastnextprevious.vim: uses global variable (you may not intend) #1

Closed
itchyny opened this issue Nov 15, 2014 · 1 comment

Comments

@itchyny
Copy link

itchyny commented Nov 15, 2014

The variables key, mapbackward, mapforward are global. There are two possible ways to fix. Make them script local or put the codes into a function.

@itchyny itchyny changed the title after/plugin/lastnextprevious.vim: uses global variable (you may not intended to) after/plugin/lastnextprevious.vim: uses global variable (you may not intend) Nov 15, 2014
@suy
Copy link
Owner

suy commented Nov 16, 2014

Oops, sorry about that. I didn't realize that being outside a function made them global. I'm pushing a fix now.

@suy suy closed this as completed in 8b0cef7 Nov 16, 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

No branches or pull requests

2 participants