From ccf90bfd8ca95c206f22d513c4c6ad8902a24dcb Mon Sep 17 00:00:00 2001 From: Kien N Date: Fri, 13 Apr 2012 17:54:08 +0700 Subject: [PATCH] Nuke the ControlP buffer before leaving --- autoload/ctrlp.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 3b34ec0..0a4c461 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1356,14 +1356,14 @@ fu! s:setupblank() endf fu! s:leavepre() + if exists('s:bufnr') && s:bufnr == bufnr('%') | bw! | en if s:clrex && !( has('clientserver') && len(split(serverlist(), "\n")) > 1 ) cal ctrlp#clra() en endf fu! s:checkbuf() - if exists('s:init') | retu | en - if exists('s:bufnr') && s:bufnr > 0 + if !exists('s:init') && exists('s:bufnr') && s:bufnr > 0 exe s:bufnr.'bw!' en endf