Call s:Close() directly
This commit is contained in:
parent
d08fcae2f4
commit
7bbe4054de
@ -264,9 +264,13 @@ endf
|
|||||||
|
|
||||||
fu! s:Close()
|
fu! s:Close()
|
||||||
cal s:buffunc(0)
|
cal s:buffunc(0)
|
||||||
|
if winnr('$') == 1
|
||||||
|
bw!
|
||||||
|
el
|
||||||
try | bun!
|
try | bun!
|
||||||
cat | clo! | endt
|
cat | clo! | endt
|
||||||
cal s:unmarksigns()
|
cal s:unmarksigns()
|
||||||
|
en
|
||||||
for key in keys(s:glbs) | if exists('+'.key)
|
for key in keys(s:glbs) | if exists('+'.key)
|
||||||
sil! exe 'let &'.key.' = s:glb_'.key
|
sil! exe 'let &'.key.' = s:glb_'.key
|
||||||
en | endfo
|
en | endfo
|
||||||
@ -759,8 +763,8 @@ endf
|
|||||||
|
|
||||||
fu! s:PrtExit()
|
fu! s:PrtExit()
|
||||||
if bufnr('%') == s:bufnr && bufname('%') == 'ControlP'
|
if bufnr('%') == s:bufnr && bufname('%') == 'ControlP'
|
||||||
if !has('autocmd') | cal s:Close() | en
|
noa cal s:Close()
|
||||||
exe ( winnr('$') == 1 ? 'bw!' : 'winc p' )
|
noa winc p
|
||||||
en
|
en
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user