diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index bf7a951c..ff6bd8a4 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -313,9 +313,18 @@ function! s:WideMsg(msg) let old_ruler = &ruler let old_showcmd = &showcmd + let msg = strpart(a:msg, 0, winwidth(0)-1) + + "This is here because it is possible for some error messages to begin with + "\n which will cause a "press enter" prompt. I have noticed this in the + "javascript:jshint checker and have been unable to figure out why it + "happens + let msg = substitute(msg, "\n", "", "g") + set noruler noshowcmd redraw - echo strpart(a:msg, 0, winwidth(0)-1) + + echo msg let &ruler=old_ruler let &showcmd=old_showcmd