Skip to content

Commit 28f47bb

Browse files
committed
don't add new line "Done: xxx".
1 parent fd18e27 commit 28f47bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/gist.vim

Lines changed: 5 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: 01-Apr-2011.
4+
" Last Change: 14-Apr-2011.
55
" Version: 4.9
66
" WebPage: http://github.com/mattn/gist-vim
77
" License: BSD
@@ -383,6 +383,7 @@ function! s:GistUpdate(user, token, content, gistid, gistnm)
383383
let location = substitute(location, '^[^:]\+: ', '', '')
384384
if len(location) > 0 && location =~ '^\(http\|https\):\/\/gist\.github\.com\/'
385385
setlocal nomodified
386+
redraw
386387
echo 'Done: '.location
387388
else
388389
let message = matchstr(headers, '^Status: ')
@@ -475,6 +476,7 @@ function! s:GistDelete(user, token, gistid)
475476
if len(token) > 0
476477
let res = s:GistGetPage('https://gist.github.com/delete/'.a:gistid, a:user, '_method=delete&authenticity_token='.token, '')
477478
if len(res.content) > 0
479+
redraw
478480
echo 'Done: '
479481
else
480482
let message = matchstr(res.header, '^Status: ')
@@ -570,6 +572,7 @@ function! s:GistPost(user, token, content, private)
570572
let location = matchstr(headers, '^Location: ')
571573
let location = substitute(location, '^[^:]\+: ', '', '')
572574
if len(location) > 0 && location =~ '^\(http\|https\):\/\/gist\.github\.com\/'
575+
redraw
573576
echo 'Done: '.location
574577
else
575578
let message = matchstr(headers, '^Status: ')
@@ -632,6 +635,7 @@ function! s:GistPostBuffers(user, token, private)
632635
let res = matchstr(split(res, '\(\r\?\n\|\r\n\?\)'), '^Location: ')
633636
let res = substitute(res, '^.*: ', '', '')
634637
if len(res) > 0 && res =~ '^\(http\|https\):\/\/gist\.github\.com\/'
638+
redraw
635639
echo 'Done: '.res
636640
else
637641
echoerr 'Post failed'

0 commit comments

Comments
 (0)