Fix terminal width detection.
Merge pull request #168 from pre-commit/fix_width_thingy

Fix terminal width detection.