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

Hilight Toggle Error when Default Load Disabled #59

Closed
jebaum opened this issue Aug 21, 2013 · 1 comment
Closed

Hilight Toggle Error when Default Load Disabled #59

jebaum opened this issue Aug 21, 2013 · 1 comment

Comments

@jebaum
Copy link

jebaum commented Aug 21, 2013

If signify is disabled from starting by default, with let g:signify_disable_by_default = 1, calling :SignifyToggleHighlight before calling :SignifyToggle produces this error:

Error detected while processing function sy#highlight#line_toggle:
line 6:
E121: Undefined variable: g:signify_line_highlight
E15: Invalid expression: g:signify_line_highlight

The error goes away once :SignifyToggle is called once. Ideally I guess highlight should check to see if signify is disabled for the current buffer, and if it is, enable it.

It may be worth noting that when working with a file with zero modifications, calling highlight will always produce the above error, even after running toggle.

@mhinz
Copy link
Owner

mhinz commented Aug 21, 2013

I never had that problem because I explictely set g:signify_line_highlight to 0 in my vimrc.

Thanks a bunch for the feedback!

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