Skip to content

Commit

Permalink
Check buffer existence in s:ExtraditeIsActiveInTab
Browse files Browse the repository at this point in the history
This prevents errors when buffers are closed incorrectly (e.g with
:q command).
  • Loading branch information
xaizek committed Mar 17, 2014
1 parent 00f6fda commit d0eebe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/extradite.vim
Expand Up @@ -181,7 +181,7 @@ endfunction

" Checks whether there is an Extradite buffer opened in the current tab page
function! s:ExtraditeIsActiveInTab() abort
return exists('t:extradite_bufnr') && t:extradite_bufnr >= 0
return exists('t:extradite_bufnr') && t:extradite_bufnr >= 0 && bufexists(t:extradite_bufnr)
endfunction

function! s:ExtraditeJump(cmd) abort
Expand Down

0 comments on commit d0eebe2

Please sign in to comment.