diff options
author | Peter Odding <peter@peterodding.com> | 2013-05-19 17:47:16 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2013-05-19 17:47:16 +0200 |
commit | ee4c247df124b38b478f8ca0f19d78fdc95ca042 (patch) | |
tree | 27428eb4594d0ec1912ce976e93d74b343f6e406 /autoload/xolox | |
parent | 9c88b0e71b41411735000645089670a3577f3e5d (diff) | |
download | vim-easytags-ee4c247df124b38b478f8ca0f19d78fdc95ca042.tar.gz |
Improve reporting of multi-line messages (now split over lines)
Diffstat (limited to 'autoload/xolox')
-rw-r--r-- | autoload/xolox/misc/msg.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/autoload/xolox/misc/msg.vim b/autoload/xolox/misc/msg.vim index 9ba2b7c..74657c8 100644 --- a/autoload/xolox/misc/msg.vim +++ b/autoload/xolox/misc/msg.vim @@ -1,6 +1,6 @@ " Vim auto-load script " Author: Peter Odding <peter@peterodding.com> -" Last Change: March 15, 2011 +" Last Change: May 19, 2013 " URL: http://peterodding.com/code/vim/misc/ if !exists('g:xolox_message_buffer') @@ -56,7 +56,10 @@ function! s:show_message(hlgroup, args) augroup END execute 'echohl' a:hlgroup " Redraw to avoid |hit-enter| prompt. - redraw | echomsg message + redraw + for line in split(message, "\n") + echomsg line + endfor if g:xolox_message_buffer > 0 call add(g:xolox_messages, message) if len(g:xolox_messages) > g:xolox_message_buffer |