Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for recognizing/expanding of environment variables

Thanks to Simon Ruderich
  • Loading branch information...
commit 675faa77f883df9025df1c947b5a7f07f14713fe 1 parent 5b98c74
kien authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  autoload/ctrlp/buffertag.vim
  2. +1 −1  autoload/ctrlp/utils.vim
2  autoload/ctrlp/buffertag.vim
View
@@ -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
2  autoload/ctrlp/utils.vim
View
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.