Explain why tabs are converted to spaces in error messages.
This commit is contained in:
parent
57e962865f
commit
3199ca3235
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user