Skip to content

Commit

Permalink
Improve reporting of multi-line messages (now split over lines)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed May 19, 2013
1 parent 9c88b0e commit ee4c247
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ee4c247

Please sign in to comment.