Skip to content

Commit e445faa

Browse files
authored
Merge pull request #302 from ctrlpvim/correct-window
Correct last focused window when PrtExit
2 parents 6c883ba + 408b68f commit e445faa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

autoload/ctrlp.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,10 +920,13 @@ fu! s:PrtDeleteMRU()
920920
endf
921921

922922
fu! s:PrtExit()
923+
let bw = bufwinnr('%')
923924
exe bufwinnr(s:bufnr).'winc w'
924925
if bufnr('%') == s:bufnr && bufname('%') == 'ControlP'
925926
noa cal s:Close(1)
926927
noa winc p
928+
els
929+
exe bw.'winc w'
927930
en
928931
endf
929932

0 commit comments

Comments
 (0)