From f6b7be61223db07bcfd878c03b2af4cf1de36002 Mon Sep 17 00:00:00 2001 From: Jim Bloom Date: Wed, 1 May 1985 23:32:03 -0800 Subject: [PATCH] new version from arnold SCCS-vsn: lib/libcurses/addch.c 1.6 --- usr/src/lib/libcurses/addch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/src/lib/libcurses/addch.c b/usr/src/lib/libcurses/addch.c index 53bd7a1313..c9a3dd7be5 100644 --- a/usr/src/lib/libcurses/addch.c +++ b/usr/src/lib/libcurses/addch.c @@ -3,7 +3,7 @@ /* * This routine adds the character to the current position * - * @(#)addch.c 1.5 (Berkeley) %G% + * @(#)addch.c 1.6 (Berkeley) %G% */ waddch(win, c) reg WINDOW *win; @@ -92,10 +92,10 @@ WINDOW *orig; { return; if (win->_y[y][x] != ch) { if (win->_firstch[y] == _NOCHANGE) - win->_firstch[y] = win->_lastch[y] = x; + win->_firstch[y] = win->_lastch[y] = x + win->_ch_off; else if (x < win->_firstch[y]) - win->_firstch[y] = x; + win->_firstch[y] = x + win->_ch_off; else if (x > win->_lastch[y]) - win->_lastch[y] = x; + win->_lastch[y] = x + win->_ch_off; } } -- 2.20.1