Skip to content
Snippets Groups Projects
Commit ef2cfde9 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

Fix jump to "file already aopen" abort

fix #128
parent 702cff8c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment