mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Avoid blurring status when :Gedit argument parsing throws an error
This commit is contained in:
@@ -6134,15 +6134,15 @@ function! fugitive#Open(cmd, bang, mods, arg, ...) abort
|
|||||||
return 'echoerr ' . string(':G' . a:cmd . '! for temp buffer output has been replaced by :' . get(s:bang_edits, a:cmd, 'Git') . ' --paginate')
|
return 'echoerr ' . string(':G' . a:cmd . '! for temp buffer output has been replaced by :' . get(s:bang_edits, a:cmd, 'Git') . ' --paginate')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let mods = s:Mods(a:mods)
|
|
||||||
if a:cmd ==# 'edit'
|
|
||||||
call s:BlurStatus()
|
|
||||||
endif
|
|
||||||
try
|
try
|
||||||
let [file, pre] = s:OpenParse(a:arg, 1, 0)
|
let [file, pre] = s:OpenParse(a:arg, 1, 0)
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr ' . string(v:exception)
|
return 'echoerr ' . string(v:exception)
|
||||||
endtry
|
endtry
|
||||||
|
let mods = s:Mods(a:mods)
|
||||||
|
if a:cmd ==# 'edit'
|
||||||
|
call s:BlurStatus()
|
||||||
|
endif
|
||||||
return mods . a:cmd . pre . ' ' . s:fnameescape(file)
|
return mods . a:cmd . pre . ' ' . s:fnameescape(file)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user