Skip to content

Commit

Permalink
Switch to the original buffer rather than quiting
Browse files Browse the repository at this point in the history
It makes using Extradite with tabs much more convenient.  Tabs are not
closed on leaving Extradite anymore.
  • Loading branch information
xaizek committed Nov 27, 2013
1 parent 84c7123 commit 13d3ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/extradite.vim
Expand Up @@ -158,7 +158,7 @@ function! s:ExtraditeClose() abort
if exists('b:extradite_simplediff_bufnr') && bufwinnr(b:extradite_simplediff_bufnr) >= 0
exe 'keepjumps bd!' . b:extradite_simplediff_bufnr
endif
keepjumps bd
exe b:extradite_logged_bufnr.'buffer'
let logged_winnr = bufwinnr(extradite_logged_bufnr)
if logged_winnr >= 0
exe 'keepjumps '.logged_winnr.'wincmd w'
Expand Down

0 comments on commit 13d3ff5

Please sign in to comment.