From 7a3572c18fe7418bf97d51eae687c2e1d14bf266 Mon Sep 17 00:00:00 2001 From: tyru Date: Sun, 3 May 2015 20:22:33 +0900 Subject: [PATCH] check url variable type --- autoload/gist.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/gist.vim b/autoload/gist.vim index 0cd0c97..3c2be02 100644 --- a/autoload/gist.vim +++ b/autoload/gist.vim @@ -1,7 +1,7 @@ "============================================================================= " File: gist.vim " Author: Yasuhiro Matsumoto -" Last Change: 21-Mar-2015. +" Last Change: 03-May-2015. " Version: 7.2 " WebPage: http://github.com/mattn/gist-vim " License: BSD @@ -880,7 +880,7 @@ function! gist#Gist(count, bang, line1, line2, ...) abort silent! normal! gv endif endif - if len(url) > 0 + if type(url) == 1 && len(url) > 0 if get(g:, 'gist_open_browser_after_post', 0) == 1 || openbrowser call s:open_browser(url) endif