Skip to content

Commit

Permalink
Try to silence errors during startup caused by :redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 13, 2014
1 parent 15fd181 commit 038faed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -38,7 +38,7 @@ from the source code of the miscellaneous scripts using the Python module
<!-- Start of generated documentation -->

The documentation of the 95 functions below was extracted from
19 Vim scripts on October 28, 2014 at 02:06.
19 Vim scripts on November 13, 2014 at 23:19.

### Asynchronous Vim script evaluation

Expand Down
4 changes: 2 additions & 2 deletions autoload/xolox/misc.vim
@@ -1,7 +1,7 @@
" The version of my miscellaneous scripts.
"
" Author: Peter Odding <peter@peterodding.com>
" Last Change: October 28, 2014
" Last Change: November 13, 2014
" URL: http://peterodding.com/code/vim/misc/

let g:xolox#misc#version = '1.17'
let g:xolox#misc#version = '1.17.1'
7 changes: 4 additions & 3 deletions autoload/xolox/misc/msg.vim
@@ -1,7 +1,7 @@
" Functions to interact with the user.
"
" Author: Peter Odding <peter@peterodding.com>
" Last Change: June 2, 2013
" Last Change: November 13, 2014
" URL: http://peterodding.com/code/vim/misc/

if !exists('g:xolox_message_buffer')
Expand Down Expand Up @@ -77,8 +77,9 @@ function! s:show_message(hlgroup, args) " {{{1
autocmd! CursorHold,CursorHoldI * call s:clear_message()
augroup END
execute 'echohl' a:hlgroup
" Redraw to avoid |hit-enter| prompt.
redraw
" Redraw to avoid the |hit-enter| prompt. We use :silent to avoid issues
" like this one: https://github.com/xolox/vim-easytags/issues/69.
silent! redraw
for line in split(message, "\n")
echomsg line
endfor
Expand Down
2 changes: 1 addition & 1 deletion doc/misc.txt
Expand Up @@ -170,7 +170,7 @@ from the source code of the miscellaneous scripts using the Python module
'vimdoctool.py' included in vim-tools [5].

The documentation of the 95 functions below was extracted from 19 Vim scripts
on October 28, 2014 at 02:06.
on November 13, 2014 at 23:19.

-------------------------------------------------------------------------------
*misc-asynchronous-vim-script-evaluation*
Expand Down

0 comments on commit 038faed

Please sign in to comment.