|
1 | 1 | "============================================================================= |
2 | 2 | " File: gist.vim |
3 | 3 | " Author: Yasuhiro Matsumoto <mattn.jp@gmail.com> |
4 | | -" Last Change: 01-Apr-2011. |
| 4 | +" Last Change: 14-Apr-2011. |
5 | 5 | " Version: 4.9 |
6 | 6 | " WebPage: http://github.com/mattn/gist-vim |
7 | 7 | " License: BSD |
@@ -383,6 +383,7 @@ function! s:GistUpdate(user, token, content, gistid, gistnm) |
383 | 383 | let location = substitute(location, '^[^:]\+: ', '', '') |
384 | 384 | if len(location) > 0 && location =~ '^\(http\|https\):\/\/gist\.github\.com\/' |
385 | 385 | setlocal nomodified |
| 386 | + redraw |
386 | 387 | echo 'Done: '.location |
387 | 388 | else |
388 | 389 | let message = matchstr(headers, '^Status: ') |
@@ -475,6 +476,7 @@ function! s:GistDelete(user, token, gistid) |
475 | 476 | if len(token) > 0 |
476 | 477 | let res = s:GistGetPage('https://gist.github.com/delete/'.a:gistid, a:user, '_method=delete&authenticity_token='.token, '') |
477 | 478 | if len(res.content) > 0 |
| 479 | + redraw |
478 | 480 | echo 'Done: ' |
479 | 481 | else |
480 | 482 | let message = matchstr(res.header, '^Status: ') |
@@ -570,6 +572,7 @@ function! s:GistPost(user, token, content, private) |
570 | 572 | let location = matchstr(headers, '^Location: ') |
571 | 573 | let location = substitute(location, '^[^:]\+: ', '', '') |
572 | 574 | if len(location) > 0 && location =~ '^\(http\|https\):\/\/gist\.github\.com\/' |
| 575 | + redraw |
573 | 576 | echo 'Done: '.location |
574 | 577 | else |
575 | 578 | let message = matchstr(headers, '^Status: ') |
@@ -632,6 +635,7 @@ function! s:GistPostBuffers(user, token, private) |
632 | 635 | let res = matchstr(split(res, '\(\r\?\n\|\r\n\?\)'), '^Location: ') |
633 | 636 | let res = substitute(res, '^.*: ', '', '') |
634 | 637 | if len(res) > 0 && res =~ '^\(http\|https\):\/\/gist\.github\.com\/' |
| 638 | + redraw |
635 | 639 | echo 'Done: '.res |
636 | 640 | else |
637 | 641 | echoerr 'Post failed' |
|
0 commit comments