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

Catch errors when accessing local options #4

Closed
wants to merge 1 commit into from

Conversation

@guns
Copy link
Contributor

@guns 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

e.g.

    echo &l:balloonexpr

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

@chrisbra 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 issue Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants