Enable default input for non-path

Close #218
This commit is contained in:
Kien N 2012-06-28 14:48:50 +07:00
parent 570e34315c
commit 6a3eecbda6
2 changed files with 5 additions and 1 deletions

View File

@ -529,7 +529,7 @@ fu! s:BuildPrompt(upd, ...)
endf
" - SetDefTxt() {{{1
fu! s:SetDefTxt()
if s:deftxt == '0' || !s:ispath | retu | en
if s:deftxt == '0' || ( s:deftxt == 1 && !s:ispath ) | retu | en
let txt = s:deftxt
if !type(txt)
let txt = txt && !stridx(s:crfpath, s:dyncwd)

View File

@ -341,6 +341,10 @@ Set this to 1 to enable seeding the prompt with the current file's relative
path: >
let g:ctrlp_default_input = 0
<
Instead of 1 or 0, if the value of the option is a string, it'll be used as-is
as the default input: >
let g:ctrlp_default_input = 'anystring'
<
*'g:ctrlp_use_migemo'*
Set this to 1 to use Migemo Pattern for Japanese filenames. Migemo Search only