syntastic#util#wideMsg() should use screen width rather than window width.

This commit is contained in:
LCD 47 2014-02-18 19:58:41 +02:00
parent bb8e259e31
commit d3b25acb66

View File

@ -101,7 +101,7 @@ function! syntastic#util#wideMsg(msg)
"width as the proper amount of characters
let chunks = split(msg, "\t", 1)
let msg = join(map(chunks[:-2], 'v:val . repeat(" ", &ts - s:width(v:val) % &ts)'), '') . chunks[-1]
let msg = strpart(msg, 0, winwidth(0) - 1)
let msg = strpart(msg, 0, &columns - 1)
set noruler noshowcmd
call syntastic#util#redraw(0)