summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/lib_doupdate.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-08-28 08:13:21 +0000
committerache <ache@FreeBSD.org>1997-08-28 08:13:21 +0000
commite23235b4281d462b719252919371af12223c139c (patch)
treeac9be2274330199f5277a8dc7c011635de031205 /lib/libncurses/lib_doupdate.c
parent0497c512b62944e105314fca99083da5644b48ba (diff)
downloadFreeBSD-src-e23235b4281d462b719252919371af12223c139c.zip
FreeBSD-src-e23235b4281d462b719252919371af12223c139c.tar.gz
Fix inspace handling I broke in rev 1.13
Diffstat (limited to 'lib/libncurses/lib_doupdate.c')
-rw-r--r--lib/libncurses/lib_doupdate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libncurses/lib_doupdate.c b/lib/libncurses/lib_doupdate.c
index cf7d284..1f42a90 100644
--- a/lib/libncurses/lib_doupdate.c
+++ b/lib/libncurses/lib_doupdate.c
@@ -229,9 +229,9 @@ int lastNonBlank;
}
for (j = 0; j <= lastNonBlank; j++) {
- int inspace = 0;
-
if (parm_right_cursor) {
+ static int inspace = 0;
+
if ((scr->_line[i][j]) == BLANK) {
inspace++;
continue;
@@ -243,8 +243,8 @@ int lastNonBlank;
T(("trying to use parm_right_cursor"));
putp(tparm(parm_right_cursor, inspace));
SP->_curscol += inspace;
+ inspace = 0;
}
- inspace = 0;
}
}
PutChar(scr->_line[i][j]);
OpenPOWER on IntegriCloud