Explain why tabs are converted to spaces in error messages.

This commit is contained in:
Charles Lehner 2012-10-25 20:01:31 -04:00
parent 57e962865f
commit 3199ca3235

View File

@ -439,6 +439,8 @@ function! s:WideMsg(msg)
let old_ruler = &ruler
let old_showcmd = &showcmd
"convert tabs to spaces so that the tabs count towards the window width
"as the proper amount of characters
let msg = substitute(a:msg, "\t", repeat(" ", &tabstop), "g")
let msg = strpart(msg, 0, winwidth(0)-1)