Fix width used for tabline

Fixes #1033
Merge pull request #1036 from ZyX-I/fix-1033

Fix width used for tabline