Skip to content

Commit 9170567

Browse files
committed
Fixes displaying multiple files. related issue mattn#56
1 parent dcdf83e commit 9170567

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

autoload/gist.vim

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"=============================================================================
22
" File: gist.vim
33
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
4-
" Last Change: 07-Oct-2013.
4+
" Last Change: 15-Oct-2013.
55
" Version: 7.1
66
" WebPage: http://github.com/mattn/gist-vim
77
" License: BSD
@@ -288,14 +288,16 @@ function! s:GistGet(gistid, clipboard)
288288
endif
289289
setlocal modifiable
290290
else
291-
silent only!
291+
if num_file == 1
292+
silent only!
293+
endif
292294
if get(g:, 'gist_list_vsplit', 0)
293295
exec 'silent noautocmd rightbelow vnew'
294296
else
295297
exec 'silent noautocmd rightbelow new'
296298
endif
297299
setlocal noswapfile
298-
exec 'noautocmd file' s:bufprefix.a:gistid."/".fnameescape(filename)
300+
silent exec 'noautocmd file' s:bufprefix.a:gistid."/".fnameescape(filename)
299301
endif
300302
set undolevels=-1
301303
filetype detect
@@ -472,10 +474,6 @@ endfunction
472474
" it will just update it.
473475
" -- by c9s
474476
"
475-
" embedded gist url format:
476-
"
477-
" Gist: https://gist.github.com/123123
478-
"
479477
" embedded gist id format:
480478
"
481479
" GistID: 123123

0 commit comments

Comments
 (0)