dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 50747b294a21c4cbf3154ecc46303d1229f0abf0
parent 40456591f573241372c9e62c4af6228dbff784e6
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Fri, 23 Nov 2012 12:23:35 +0100

wcwidth can return -1 also remove GCC ism

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>

Diffstat:
vt.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vt.c b/vt.c @@ -1056,8 +1056,8 @@ static void put_wc(Vt *t, wchar_t wc) wc = gc; } width = 1; - } else { - width = wcwidth(wc) ? : 1; + } else if ((width = wcwidth(wc)) < 1) { + width = 1; } if (width == 2 && t->curs_col == t->cols - 1) {