Skip to content

Commit c410d84

Browse files
committed
no need exit arg
1 parent f5a6ae2 commit c410d84

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

autoload/ctrlp.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ fu! s:Open()
329329
cal s:setupblank()
330330
endf
331331

332-
fu! s:Close(exit)
332+
fu! s:Close()
333333
cal s:buffunc(0)
334334
if winnr('$') == 1
335335
bw!
336-
elsei a:exit
336+
el
337337
try | bun!
338338
cat | clo! | endt
339339
cal s:unmarksigns()
@@ -937,7 +937,7 @@ fu! s:PrtExit()
937937
let bw = bufwinnr('%')
938938
exe bufwinnr(s:bufnr).'winc w'
939939
if bufnr('%') == s:bufnr && bufname('%') == 'ControlP'
940-
noa cal s:Close(1)
940+
noa cal s:Close()
941941
noa winc p
942942
els
943943
exe bw.'winc w'
@@ -2606,7 +2606,7 @@ if has('autocmd')
26062606
aug CtrlPAug
26072607
au!
26082608
au BufEnter ControlP cal s:checkbuf()
2609-
au BufLeave ControlP noa cal s:Close(0)
2609+
au BufLeave ControlP noa cal s:Close()
26102610
au VimLeavePre * cal s:leavepre()
26112611
aug END
26122612
en

0 commit comments

Comments
 (0)