We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9d09b6 + 683bf9c commit cd99e43Copy full SHA for cd99e43
1 file changed
autoload/ctrlp.vim
@@ -315,11 +315,11 @@ fu! s:Open()
315
cal s:setupblank()
316
endf
317
318
-fu! s:Close()
+fu! s:Close(exit)
319
cal s:buffunc(0)
320
if winnr('$') == 1
321
bw!
322
- el
+ elsei a:exit
323
try | bun!
324
cat | clo! | endt
325
cal s:unmarksigns()
@@ -908,7 +908,7 @@ endf
908
909
fu! s:PrtExit()
910
if bufnr('%') == s:bufnr && bufname('%') == 'ControlP'
911
- noa cal s:Close()
+ noa cal s:Close(1)
912
noa winc p
913
en
914
@@ -2534,7 +2534,7 @@ if has('autocmd')
2534
aug CtrlPAug
2535
au!
2536
au BufEnter ControlP cal s:checkbuf()
2537
- au BufLeave ControlP noa cal s:Close()
+ au BufLeave ControlP noa cal s:Close(0)
2538
au VimLeavePre * cal s:leavepre()
2539
aug END
2540
0 commit comments