Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Prevent tabs in error messages from causing "press enter" prompt.
Browse files Browse the repository at this point in the history
Convert the tabs to spaces so that they are counted towards the window width
and the status message does not wrap.
  • Loading branch information
clehner committed Oct 25, 2012
1 parent 3342712 commit 57e9628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/syntastic.vim
Expand Up @@ -439,7 +439,8 @@ function! s:WideMsg(msg)
let old_ruler = &ruler
let old_showcmd = &showcmd

let msg = strpart(a:msg, 0, winwidth(0)-1)
let msg = substitute(a:msg, "\t", repeat(" ", &tabstop), "g")
let msg = strpart(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
Expand Down

0 comments on commit 57e9628

Please sign in to comment.