From 1dfd1e1b84461e1ed6a0aec6b4b18e1795d14510 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sun, 8 Apr 2012 22:56:07 +0700 Subject: [PATCH] Downgrade CtrlPLastMode --- autoload/ctrlp.vim | 4 +--- doc/ctrlp.txt | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 3aa9c55..c87caff 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -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) diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt index 36e35d1..29b5999 100644 --- a/doc/ctrlp.txt +++ b/doc/ctrlp.txt @@ -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.