Skip to content

Commit

Permalink
Use %{} to evaluate the cwd displayed on the statusline
Browse files Browse the repository at this point in the history
In case the cwd has %'s in it, resulting in a messed up looking cwd.
  • Loading branch information
kien committed Jul 9, 2012
1 parent 4d5b39c commit 74155db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/ctrlp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ fu! ctrlp#statusline()
let byfname = '%#CtrlPMode1# '.byfname.' %*'
let regex = s:regexp ? '%#CtrlPMode2# regex %*' : ''
let slider = ' <'.prv.'>={'.item.'}=<'.nxt.'>'
let dir = ' %=%<%#CtrlPMode2# '.s:dyncwd.' %*'
let dir = ' %=%<%#CtrlPMode2# %{getcwd()} %*'
let &l:stl = focus.byfname.regex.slider.marked.dir
en
endf
Expand All @@ -1204,7 +1204,7 @@ fu! ctrlp#progress(enum, ...)
if has('macunix') || has('mac') | sl 1m | en
let txt = a:0 ? '(press ctrl-c to abort)' : ''
let &l:stl = s:status != {} ? call(s:status['prog'], [a:enum])
\ : '%#CtrlPStats# '.a:enum.' %* '.txt.'%=%<%#CtrlPMode2# '.s:dyncwd.' %*'
\ : '%#CtrlPStats# '.a:enum.' %* '.txt.'%=%<%#CtrlPMode2# %{getcwd()} %*'
redraws
endf
" Paths {{{2
Expand Down

0 comments on commit 74155db

Please sign in to comment.