Skip to content

Commit 7e6c54a

Browse files
committed
load webapi to avoid to return 0 by function('webapi#json#true')
1 parent afd74f4 commit 7e6c54a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/gist.vim

Lines changed: 3 additions & 1 deletion
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: 04-Mar-2015.
4+
" Last Change: 21-Mar-2015.
55
" Version: 7.2
66
" WebPage: http://github.com/mattn/gist-vim
77
" License: BSD
@@ -28,6 +28,8 @@ endif
2828
if globpath(&rtp, 'autoload/webapi/http.vim') ==# ''
2929
echohl ErrorMsg | echomsg 'Gist: require ''webapi'', install https://github.com/mattn/webapi-vim' | echohl None
3030
finish
31+
else
32+
call webapi#json#true()
3133
endif
3234

3335
let s:gist_token_file = expand(get(g:, 'gist_token_file', '~/.gist-vim'))

0 commit comments

Comments
 (0)