Nuke the ControlP buffer before leaving

This commit is contained in:
Kien N 2012-04-13 17:54:08 +07:00
parent d6e5c56b04
commit ccf90bfd8c

View File

@ -1356,14 +1356,14 @@ fu! s:setupblank()
endf endf
fu! s:leavepre() fu! s:leavepre()
if exists('s:bufnr') && s:bufnr == bufnr('%') | bw! | 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
endf endf
fu! s:checkbuf() fu! s:checkbuf()
if exists('s:init') | retu | en if !exists('s:init') && exists('s:bufnr') && s:bufnr > 0
if exists('s:bufnr') && s:bufnr > 0
exe s:bufnr.'bw!' exe s:bufnr.'bw!'
en en
endf endf