diff options
author | ache <ache@FreeBSD.org> | 1997-08-28 08:13:21 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-08-28 08:13:21 +0000 |
commit | e23235b4281d462b719252919371af12223c139c (patch) | |
tree | ac9be2274330199f5277a8dc7c011635de031205 /lib/libncurses | |
parent | 0497c512b62944e105314fca99083da5644b48ba (diff) | |
download | FreeBSD-src-e23235b4281d462b719252919371af12223c139c.zip FreeBSD-src-e23235b4281d462b719252919371af12223c139c.tar.gz |
Fix inspace handling I broke in rev 1.13
Diffstat (limited to 'lib/libncurses')
-rw-r--r-- | lib/libncurses/lib_doupdate.c | 6 |
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]); |