Downgrade CtrlPLastMode
This commit is contained in:
parent
349e5afc4f
commit
1dfd1e1b84
@ -1356,7 +1356,6 @@ fu! s:setupblank()
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
fu! s:leavepre()
|
fu! s:leavepre()
|
||||||
if exists('s:itemtype') | let g:CTRLP_LAST_MODE = s:itemtype | en
|
|
||||||
if s:clrex && !( has('clientserver') && len(split(serverlist(), "\n")) > 1 )
|
if s:clrex && !( has('clientserver') && len(split(serverlist(), "\n")) > 1 )
|
||||||
cal ctrlp#clra()
|
cal ctrlp#clra()
|
||||||
en
|
en
|
||||||
@ -1518,8 +1517,7 @@ fu! s:openfile(cmd, fid, tail, ...)
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
fu! s:settype(type)
|
fu! s:settype(type)
|
||||||
retu a:type < 0 ? exists('s:itemtype') ? s:itemtype
|
retu a:type < 0 ? exists('s:itemtype') ? s:itemtype : 0 : a:type
|
||||||
\ : exists('g:CTRLP_LAST_MODE') ? g:CTRLP_LAST_MODE : 0 : a:type
|
|
||||||
endf
|
endf
|
||||||
" Matching {{{2
|
" Matching {{{2
|
||||||
fu! s:matchfname(item, pat)
|
fu! s:matchfname(item, pat)
|
||||||
|
@ -494,7 +494,6 @@ COMMANDS *ctrlp-commands*
|
|||||||
*:CtrlPLastMode*
|
*:CtrlPLastMode*
|
||||||
:CtrlPLastMode
|
:CtrlPLastMode
|
||||||
Open CtrlP in the last mode used.
|
Open CtrlP in the last mode used.
|
||||||
Works cross-session if you have a ! in your |'viminfo'| option.
|
|
||||||
|
|
||||||
*:CtrlPClearCache*
|
*:CtrlPClearCache*
|
||||||
:CtrlPClearCache
|
:CtrlPClearCache
|
||||||
@ -789,7 +788,7 @@ Available extensions:~
|
|||||||
* Mixed mode:~
|
* Mixed mode:~
|
||||||
- Name: 'mixed'
|
- Name: 'mixed'
|
||||||
- Command: ':CtrlPMixed'
|
- Command: ':CtrlPMixed'
|
||||||
- Search in files, buffers and MRU files.
|
- Search in files, buffers and MRU files at the same time.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Buffer Tag mode options:~
|
Buffer Tag mode options:~
|
||||||
@ -923,6 +922,8 @@ Special thanks:~
|
|||||||
===============================================================================
|
===============================================================================
|
||||||
CHANGELOG *ctrlp-changelog*
|
CHANGELOG *ctrlp-changelog*
|
||||||
|
|
||||||
|
Before 2012/04/15~
|
||||||
|
|
||||||
+ New option: |g:ctrlp_buffer_func|, callback functions for CtrlP buffer.
|
+ New option: |g:ctrlp_buffer_func|, callback functions for CtrlP buffer.
|
||||||
+ Remove: g:ctrlp_mruf_last_entered, make it a default for MRU mode.
|
+ Remove: g:ctrlp_mruf_last_entered, make it a default for MRU mode.
|
||||||
+ New commands: |:CtrlPLastMode|, open CtrlP in the last mode used.
|
+ New commands: |:CtrlPLastMode|, open CtrlP in the last mode used.
|
||||||
|
Loading…
Reference in New Issue
Block a user