Fix for recognizing/expanding of environment variables
Thanks to Simon Ruderich
This commit is contained in:
parent
5b98c7453f
commit
675faa77f8
@ -158,7 +158,7 @@ fu! s:esctagscmd(bin, args, ...)
|
|||||||
let &ssl = ssl
|
let &ssl = ssl
|
||||||
en
|
en
|
||||||
if has('iconv')
|
if has('iconv')
|
||||||
let last = s:enc != &enc ? s:enc : !empty($LANG) ? $LANG : &enc
|
let last = s:enc != &enc ? s:enc : !empty( $LANG ) ? $LANG : &enc
|
||||||
let cmd = iconv(cmd, &enc, last)
|
let cmd = iconv(cmd, &enc, last)
|
||||||
en
|
en
|
||||||
retu cmd
|
retu cmd
|
||||||
|
@ -15,7 +15,7 @@ endf
|
|||||||
|
|
||||||
fu! ctrlp#utils#opts()
|
fu! ctrlp#utils#opts()
|
||||||
let s:lash = ctrlp#utils#lash()
|
let s:lash = ctrlp#utils#lash()
|
||||||
let usrhome = $HOME.s:lash($HOME)
|
let usrhome = $HOME . s:lash( $HOME )
|
||||||
let cahome = exists('$XDG_CACHE_HOME') ? $XDG_CACHE_HOME : usrhome.'.cache'
|
let cahome = exists('$XDG_CACHE_HOME') ? $XDG_CACHE_HOME : usrhome.'.cache'
|
||||||
let cadir = isdirectory(usrhome.'.ctrlp_cache')
|
let cadir = isdirectory(usrhome.'.ctrlp_cache')
|
||||||
\ ? usrhome.'.ctrlp_cache' : cahome.s:lash(cahome).'ctrlp'
|
\ ? usrhome.'.ctrlp_cache' : cahome.s:lash(cahome).'ctrlp'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user