From 675faa77f883df9025df1c947b5a7f07f14713fe Mon Sep 17 00:00:00 2001 From: Kien N Date: Fri, 21 Dec 2012 08:48:12 +0700 Subject: [PATCH] Fix for recognizing/expanding of environment variables Thanks to Simon Ruderich --- autoload/ctrlp/buffertag.vim | 2 +- autoload/ctrlp/utils.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ctrlp/buffertag.vim b/autoload/ctrlp/buffertag.vim index 0a24eef..2af1fe0 100644 --- a/autoload/ctrlp/buffertag.vim +++ b/autoload/ctrlp/buffertag.vim @@ -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 diff --git a/autoload/ctrlp/utils.vim b/autoload/ctrlp/utils.vim index 7a74b7f..d54fd38 100644 --- a/autoload/ctrlp/utils.vim +++ b/autoload/ctrlp/utils.vim @@ -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'