Use %{} to evaluate the cwd displayed on the statusline
In case the cwd has %'s in it, resulting in a messed up looking cwd.
This commit is contained in:
parent
4d5b39c0cf
commit
74155db2ef
@ -1190,7 +1190,7 @@ fu! ctrlp#statusline()
|
|||||||
let byfname = '%#CtrlPMode1# '.byfname.' %*'
|
let byfname = '%#CtrlPMode1# '.byfname.' %*'
|
||||||
let regex = s:regexp ? '%#CtrlPMode2# regex %*' : ''
|
let regex = s:regexp ? '%#CtrlPMode2# regex %*' : ''
|
||||||
let slider = ' <'.prv.'>={'.item.'}=<'.nxt.'>'
|
let slider = ' <'.prv.'>={'.item.'}=<'.nxt.'>'
|
||||||
let dir = ' %=%<%#CtrlPMode2# '.s:dyncwd.' %*'
|
let dir = ' %=%<%#CtrlPMode2# %{getcwd()} %*'
|
||||||
let &l:stl = focus.byfname.regex.slider.marked.dir
|
let &l:stl = focus.byfname.regex.slider.marked.dir
|
||||||
en
|
en
|
||||||
endf
|
endf
|
||||||
@ -1204,7 +1204,7 @@ fu! ctrlp#progress(enum, ...)
|
|||||||
if has('macunix') || has('mac') | sl 1m | en
|
if has('macunix') || has('mac') | sl 1m | en
|
||||||
let txt = a:0 ? '(press ctrl-c to abort)' : ''
|
let txt = a:0 ? '(press ctrl-c to abort)' : ''
|
||||||
let &l:stl = s:status != {} ? call(s:status['prog'], [a:enum])
|
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
|
redraws
|
||||||
endf
|
endf
|
||||||
" Paths {{{2
|
" Paths {{{2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user