backup and restore wildignore to prevent conflicts with expand(), fixes #50

This commit is contained in:
Alan Hamlett 2017-05-18 22:07:17 -07:00
parent af236232a6
commit 00443e2b58

View file

@ -31,6 +31,12 @@ let s:VERSION = '5.0.1'
let s:old_cpo = &cpo let s:old_cpo = &cpo
set cpo&vim set cpo&vim
" Backup wildignore before clearing it to prevent conflicts with expand()
let s:wildignore = &wildignore
if s:wildignore != ""
set wildignore=""
endif
" Script Globals " Script Globals
let s:home = expand("$WAKATIME_HOME") let s:home = expand("$WAKATIME_HOME")
if s:home == '$WAKATIME_HOME' if s:home == '$WAKATIME_HOME'
@ -474,5 +480,10 @@ let s:VERSION = '5.0.1'
" }}} " }}}
" Restore wildignore option
if s:wildignore != ""
let &wildignore=s:wildignore
endif
" Restore cpoptions " Restore cpoptions
let &cpo = s:old_cpo let &cpo = s:old_cpo