Downgrade CtrlPLastMode

This commit is contained in:
Kien N 2012-04-08 22:56:07 +07:00
parent 349e5afc4f
commit 1dfd1e1b84
2 changed files with 4 additions and 5 deletions

View File

@ -1356,7 +1356,6 @@ fu! s:setupblank()
endf
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 )
cal ctrlp#clra()
en
@ -1518,8 +1517,7 @@ fu! s:openfile(cmd, fid, tail, ...)
endf
fu! s:settype(type)
retu a:type < 0 ? exists('s:itemtype') ? s:itemtype
\ : exists('g:CTRLP_LAST_MODE') ? g:CTRLP_LAST_MODE : 0 : a:type
retu a:type < 0 ? exists('s:itemtype') ? s:itemtype : 0 : a:type
endf
" Matching {{{2
fu! s:matchfname(item, pat)

View File

@ -494,7 +494,6 @@ COMMANDS *ctrlp-commands*
*:CtrlPLastMode*
:CtrlPLastMode
Open CtrlP in the last mode used.
Works cross-session if you have a ! in your |'viminfo'| option.
*:CtrlPClearCache*
:CtrlPClearCache
@ -789,7 +788,7 @@ Available extensions:~
* Mixed mode:~
- Name: 'mixed'
- Command: ':CtrlPMixed'
- Search in files, buffers and MRU files.
- Search in files, buffers and MRU files at the same time.
-------------------------------------------------------------------------------
Buffer Tag mode options:~
@ -923,6 +922,8 @@ Special thanks:~
===============================================================================
CHANGELOG *ctrlp-changelog*
Before 2012/04/15~
+ New option: |g:ctrlp_buffer_func|, callback functions for CtrlP buffer.
+ Remove: g:ctrlp_mruf_last_entered, make it a default for MRU mode.
+ New commands: |:CtrlPLastMode|, open CtrlP in the last mode used.