Expand default input if is string
This commit is contained in:
parent
aca1f9db97
commit
60b9d44313
@ -468,11 +468,13 @@ endf
|
|||||||
" - SetDefTxt() {{{1
|
" - SetDefTxt() {{{1
|
||||||
fu! s:SetDefTxt()
|
fu! s:SetDefTxt()
|
||||||
if s:deftxt == '0' || !s:ispath | retu | en
|
if s:deftxt == '0' || !s:ispath | retu | en
|
||||||
let txt = expand(s:deftxt, 1)
|
let txt = s:deftxt
|
||||||
if !type(txt)
|
if !type(txt)
|
||||||
let txt = txt && !stridx(s:crfpath, s:dyncwd)
|
let txt = txt && !stridx(s:crfpath, s:dyncwd)
|
||||||
\ ? ctrlp#rmbasedir([s:crfpath])[0] : ''
|
\ ? ctrlp#rmbasedir([s:crfpath])[0] : ''
|
||||||
let txt = txt != '' ? txt.s:lash(s:crfpath) : ''
|
let txt = txt != '' ? txt.s:lash(s:crfpath) : ''
|
||||||
|
el
|
||||||
|
let txt = expand(txt, 1)
|
||||||
en
|
en
|
||||||
let s:prompt[0] = txt
|
let s:prompt[0] = txt
|
||||||
endf
|
endf
|
||||||
|
Loading…
Reference in New Issue
Block a user