Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7a3572c

Browse files
committed
check url variable type
1 parent 22eeb3a commit 7a3572c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎autoload/gist.vim‎

Lines changed: 2 additions & 2 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: 21-Mar-2015.
4+
" Last Change: 03-May-2015.
55
" Version: 7.2
66
" WebPage: http://github.com/mattn/gist-vim
77
" License: BSD
@@ -880,7 +880,7 @@ function! gist#Gist(count, bang, line1, line2, ...) abort
880880
silent! normal! gv
881881
endif
882882
endif
883-
if len(url) > 0
883+
if type(url) ==1&&len(url) > 0
884884
if get(g:, 'gist_open_browser_after_post', 0) == 1 || openbrowser
885885
call s:open_browser(url)
886886
endif

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /