Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use "exists" instead of "has" to detect colorcolumn option #34

Merged
merged 1 commit into from

2 participants

@sandaya

"has" does not work for the colorcolumn option. It always returns 0 whether you have colorcolumn (v7.3) or not.

e.g:

:echo has("colorcolumn")
"returns 0 in 7.3

:echo exists("+colorcolumn")
"returns 1 in 7.3

@fholgado fholgado merged commit 08d7287 into from
@fholgado fholgado was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugin/minibufexpl.vim
View
2  plugin/minibufexpl.vim
@@ -750,7 +750,7 @@ function! <SID>StartExplorer(sticky,delBufNum,currBufName)
" No spell check
setlocal nospell
" Restore colorcolumn for VIM >= 7.3
- if has("colorcolumn")
+ if exists("+colorcolumn")
setlocal colorcolumn&
end
Something went wrong with that request. Please try again.