From owner-p4-projects@FreeBSD.ORG Sun Dec 7 14:01:05 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 943841065677; Sun, 7 Dec 2008 14:01:05 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56FA61065672 for ; Sun, 7 Dec 2008 14:01:05 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2CF8D8FC13 for ; Sun, 7 Dec 2008 14:01:05 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mB7E14XU087348 for ; Sun, 7 Dec 2008 14:01:04 GMT (envelope-from ed@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mB7E14Hc087346 for perforce@freebsd.org; Sun, 7 Dec 2008 14:01:04 GMT (envelope-from ed@FreeBSD.org) Date: Sun, 7 Dec 2008 14:01:04 GMT Message-Id: <200812071401.mB7E14Hc087346@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to ed@FreeBSD.org using -f From: Ed Schouten To: Perforce Change Reviews Cc: Subject: PERFORCE change 154257 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2008 14:01:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=154257 Change 154257 by ed@ed_flippo on 2008/12/07 14:00:44 Don't hardcode to 1-column characters here. Affected files ... .. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#7 edit Differences ... ==== //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#7 (text+ko) ==== @@ -740,7 +740,7 @@ } else { /* No scrolling needed. */ teken_funcs_putchar(t, &t->t_cursor, c, &t->t_curattr); - if (t->t_cursor.tp_col == t->t_winsize.tp_col - 1) { + if (t->t_cursor.tp_col >= t->t_winsize.tp_col - width) { t->t_stateflags |= TS_WRAPPED; } else { t->t_cursor.tp_col += width;