Fix broken behavior in compatible mode.
This commit is contained in:
parent
c1a258526b
commit
60e43e82d0
@ -21,14 +21,19 @@
|
|||||||
" store them if it is not built with +gui.
|
" store them if it is not built with +gui.
|
||||||
if has("gui_running") || ! has("gui") || exists('g:CSApprox_loaded')
|
if has("gui_running") || ! has("gui") || exists('g:CSApprox_loaded')
|
||||||
" XXX This depends upon knowing the default for g:CSApprox_verbose_level
|
" XXX This depends upon knowing the default for g:CSApprox_verbose_level
|
||||||
if has('gui_running')
|
let s:verbose = 1
|
||||||
\ && exists("g:CSApprox_verbose_level") && g:CSApprox_verbose_level > 1
|
if exists("g:CSApprox_verbose_level")
|
||||||
echomsg "Not loading CSApprox in gui mode."
|
let s:verbose = g:CSApprox_verbose_level
|
||||||
elseif ! has('gui')
|
|
||||||
\ && (!exists("g:CSApprox_verbose_level") || g:CSApprox_verbose_level)
|
|
||||||
echomsg "CSApprox needs gui support - not loading."
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if has('gui_running') && s:verbose > 1
|
||||||
|
echomsg "Not loading CSApprox in gui mode."
|
||||||
|
elseif ! has('gui') && s:verbose > 0
|
||||||
|
echomsg "CSApprox needs gui support - not loading."
|
||||||
|
endif
|
||||||
|
|
||||||
|
unlet s:verbose
|
||||||
|
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user