Skip to content
Browse files

use webapi#system_function.

  • Loading branch information...
1 parent ee9c5d3 commit aad7fb31849c548ec21fcb018e2bf49629f4f290 @mattn committed Jul 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 autoload/gist.vim
View
3 autoload/gist.vim
@@ -12,7 +12,8 @@ set cpo&vim
let s:configfile = expand('~/.gist-vim')
if !exists('g:github_user')
- let g:github_user = substitute(system('git config --get github.user'), "\n", '', '')
+ let s:system = function(get(g:, 'webapi#system_function', 'system'))
+ let g:github_user = substitute(s:system('git config --get github.user'), "\n", '', '')
if strlen(g:github_user) == 0
let g:github_user = $GITHUB_USER
end

0 comments on commit aad7fb3

Please sign in to comment.
Something went wrong with that request. Please try again.