File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,13 @@ function! fetch#buffer(spec) abort " {{{
130130 endif
131131
132132 " edit resolved file and place cursor at position spec
133- execute ' keepalt' get (l: , ' cmd' , ' edit' ).v: cmdarg fnameescape (l: file )
133+ let l: shortmess = &shortmess
134+ set shortmess += oO " avoid " Press ENTER" prompt on switch
135+ try
136+ execute ' keepalt' get (l: , ' cmd' , ' edit' ).v: cmdarg fnameescape (l: file )
137+ finally
138+ let &shortmess = l: shortmess
139+ endtry
134140 if ! empty (v: swapcommand )
135141 execute ' normal' v: swapcommand
136142 endif
Original file line number Diff line number Diff line change 1- *vim-fetch.txt* For Vim version 7.0 or better version 2.0.1
1+ *vim-fetch.txt* For Vim version 7.0 or better version 2.0.2
22
33
44 VIM REFERENCE for the Fetch plug-in
Original file line number Diff line number Diff line change 11" SIMPLIFIED TAKE ON BOGADO/FILE-LINE (HOPEFULLY) WITHOUT THE WARTS
22" Maintainer: Martin Kopischke <martin@kopischke.net>
33" License: MIT (see LICENSE.md)
4- " Version: 2.0.1
4+ " Version: 2.0.2
55if &compatible || ! has (' autocmd' ) || v: version < 700
66 finish
77endif
You can’t perform that action at this time.
0 commit comments