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

Catch errors when accessing local options #4

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@guns
Copy link
Contributor

guns commented Jul 24, 2011

Hello,

NrrwRgn raises an error in console vim:

Error detected while processing function nrrwrgn#NrrwRgn..<SNR>36_NrwRgnWin..<SNR>36_GetOptions:
line    6:
E113: Unknown option: balloonexpr
E15: Invalid expression: &l:balloonexpr

This is because the +ballooneval feature is a GUI feature.

Following simple patch wraps &l:option access in try/catch.

Cheers,
guns

Catch errors when accessing local options
e.g.

    echo &l:balloonexpr

results in an error in console Vim, which can not have the +ballooneval
feature defined.
@chrisbra

This comment has been minimized.

Copy link
Owner

chrisbra commented Jul 26, 2011

Should already been merged, so closing. Thanks!

@chrisbra chrisbra closed this Jul 26, 2011

chrisbra pushed a commit that referenced this pull request Jan 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment