The awesome_line_wrapping that wraps lines in a tab-aware currently works by counting tabs at the start of the line, calculates their width in pixels, and offsets the subsequent text by a negative amount.
It's quite complicated because the space width needs to be measured. This can be simplified by using the ch CSS unit, and taking 1ch as the space width.
The
awesome_line_wrapping
that wraps lines in a tab-aware currently works by counting tabs at the start of the line, calculates their width in pixels, and offsets the subsequent text by a negative amount.It's quite complicated because the space width needs to be measured. This can be simplified by using the
ch
CSS unit, and taking1ch
as the space width.I also removed some stale code