Skip to content

Commit

Permalink
Fix jump to "file already aopen" abort
Browse files Browse the repository at this point in the history
fix #128
  • Loading branch information
jreybert committed Mar 8, 2017
1 parent 702cff8 commit ef2cfde
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,15 @@ function! magit#jump_to()
execute buf_win."wincmd w"
endif

try
execute "edit " . "+" . line . " " filename
catch
if ( v:exception == 'Vim:Interrupt' && buf_win == 0)
close
elseif ( v:exception != 'Vim(edit):E325: ATTENTION' )
throw v:exception
endif
endtry
endfunction

function! magit#update_diff(way)
Expand Down

0 comments on commit ef2cfde

Please sign in to comment.