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
1 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,12 @@ let s:VERSION = '5.0.1'
let s:old_cpo = &cpo
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
let s:home = expand("$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
let &cpo = s:old_cpo