Skip to content

Commit ce1bfad

Browse files
committed
Merge branch 'release-2.0.2'
2 parents 8cddd0b + 0f1ff1a commit ce1bfad

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

autoload/fetch.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

doc/vim-fetch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

plugin/fetch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
55
if &compatible || !has('autocmd') || v:version < 700
66
finish
77
endif

0 commit comments

Comments
 (0)