From 44563b5d226effe3b54529377f45d6d1fc780683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Gustafsson?= Date: Mon, 21 Nov 2011 12:03:25 +0100 Subject: [PATCH] Changed echo to echomsg. --- autoload/gist.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/gist.vim b/autoload/gist.vim index 3472f14..f756d3a 100644 --- a/autoload/gist.vim +++ b/autoload/gist.vim @@ -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\(.*\)') @@ -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\(.*\)') @@ -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\(.*\)') @@ -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