From 65feed9f41a8a2cbe1c44f91e93be5ed98cb5ceb Mon Sep 17 00:00:00 2001 From: Jerome Reybert <jreybert@gmail.com> Date: Sat, 21 May 2022 23:02:14 +0200 Subject: [PATCH] Fix jump_to exception vim (and neovim) do not like exception starting with Vim. E608: Cannot :throw exceptions with 'Vim' prefix Prefix forwarded exception with "vimagit: " --- plugin/magit.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/magit.vim b/plugin/magit.vim index 55bc4ed..e150060 100644 --- a/plugin/magit.vim +++ b/plugin/magit.vim @@ -1323,7 +1323,7 @@ function! magit#jump_to() if ( v:exception == 'Vim:Interrupt' && buf_win == 0) close elseif ( v:exception != 'Vim(edit):E325: ATTENTION' ) - throw v:exception + throw "vimagit: " . v:exception endif endtry endfunction -- GitLab