Skip to content

Commit

Permalink
Fix for recognizing/expanding of environment variables
Browse files Browse the repository at this point in the history
Thanks to Simon Ruderich
  • Loading branch information
kien committed Dec 21, 2012
1 parent 5b98c74 commit 675faa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/ctrlp/buffertag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fu! s:esctagscmd(bin, args, ...)
let &ssl = ssl
en
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)
en
retu cmd
Expand Down
2 changes: 1 addition & 1 deletion autoload/ctrlp/utils.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endf

fu! ctrlp#utils#opts()
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 cadir = isdirectory(usrhome.'.ctrlp_cache')
\ ? usrhome.'.ctrlp_cache' : cahome.s:lash(cahome).'ctrlp'
Expand Down

0 comments on commit 675faa7

Please sign in to comment.