Fix width used for tabline

Fixes #1033