Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions autoload/gist.vim
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ function! s:GistUpdate(user, token, content, gistid, gistnm)
if len(loc) > 0 && loc =~ '^\(http\|https\):\/\/gist\.github\.com\/'
setlocal nomodified
redraw
echo 'Done: '.loc
echomsg 'Done: '.loc
else
let message = matchstr(headers, '^Status:')
let message = matchstr(message, '^[^:]\+:\s*[0-9]\+\s*\zs\(.*\)')
Expand Down Expand Up @@ -527,7 +527,7 @@ function! s:GistDelete(user, token, gistid)
let res = s:GistGetPage('https://gist.github.com/delete/'.a:gistid, a:user, '_method=delete&authenticity_token='.token, '')
if len(res.content) > 0
redraw
echo 'Done: '
echomsg 'Done: '
else
let message = matchstr(res.headers, '^Status:')
let message = matchstr(message, '^[^:]\+:\s*[0-9]\+\s*\zs\(.*\)')
Expand Down Expand Up @@ -633,7 +633,7 @@ function! s:GistPost(user, token, content, private)
let loc = matchstr(loc, '^[^:]\+: \zs.*')
if len(loc) > 0 && loc =~ '^\(http\|https\):\/\/gist\.github\.com\/'
redraw
echo 'Done: '.loc
echomsg 'Done: '.loc
else
let message = matchstr(headers, '^Status:')
let message = matchstr(message, '^[^:]\+:\s*[0-9]\+\s*\zs\(.*\)')
Expand Down Expand Up @@ -697,7 +697,7 @@ function! s:GistPostBuffers(user, token, private)
let loc = matchstr(loc, '^[^:]\+: \zs.*')
if len(loc) > 0 && loc =~ '^\(http\|https\):\/\/gist\.github\.com\/'
redraw
echo 'Done: '.res
echomsg 'Done: '.res
else
echohl ErrorMsg | echomsg 'Post failed' | echohl None
endif
Expand Down