Permalink
Browse files

Use %{} to evaluate the cwd displayed on the statusline

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 74155db2ef8ddba725873987a673f7275fbb70ba
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/ctrlp.vim
View
@@ -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
@@ -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

0 comments on commit 74155db

Please sign in to comment.