Crop text when title-overflow is enabled
commitb5f566dd5f60287721e052f866966884915e05b4
authorJonas Fonseca <fonseca@diku.dk>
Sun, 4 Aug 2013 18:03:46 +0000 (4 14:03 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 4 Aug 2013 18:13:09 +0000 (4 14:13 -0400)
tree0d15ae11d18d9e803a054bd57d5479055045f84f
parent888611dd5d407775245d574a3dc5c01b5963a5ba
Crop text when title-overflow is enabled

Limit the length of the title text if less columns are available when
drawing the title. This fixes a glitch introduced with the original
title-overflow patch, where the title text would wrap to the next line
when rendered.

Improve the rendering when only part of the "non-overflowing" title text
is displayed by showing the '~' character to indicate that the text was
cropped.

Fixes #166
tig.c