Don't need to check pathmode

This commit is contained in:
Kien N 2012-04-16 13:09:48 +07:00
parent b3d9e480c8
commit b41dbb68ba

View File

@ -464,7 +464,7 @@ fu! s:BuildPrompt(upd, ...)
endf endf
" - SetDefTxt() {{{1 " - SetDefTxt() {{{1
fu! s:SetDefTxt() fu! s:SetDefTxt()
if s:deftxt == '0' || s:pathmode == 1 || !s:ispath | retu | en if s:deftxt == '0' || !s:ispath | retu | en
let txt = s:deftxt 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)