Subject: Curses bug
To: None <leo@marco.de>
From: Julian H Stacey <Julian.H.Stacey@regent.e-technik.tu-muenchen.de>
List: port-pc532
Date: 10/05/1994 17:34:47
Matthias
I was checking the NetBSD sources
(.mirror: gatekeeper.dec.com:/pub/BSD/NetBSD/NetBSD-current/src)
completed successfully @ Fri Sep 30 16:08:24 MSZ 1994 ) )
Your bug fix has not been integrated:
|To: port-pc532@sun-lamp.cs.berkeley.edu (532bsd Mailing List)
|Date: Tue, 16 Aug 1994 11:47:23 +0200
|
|Hi,
|
|I finally found the bug in curses that prevented my from displaying blanks
|in standout mode as the last character in a line. Could someone forward this
|to the correct mailing list?
Current source reads:
if (ce != NULL &&
win->maxx + win->begx == curscr->maxx &&
wx >= nlsp && nsp->ch == ' ' && nsp->attr == 0) {
/* Check for clear to end-of-line. */
Your diff was
if (ce != NULL && win->maxx + win->begx ==
! curscr->maxx && wx >= nlsp && nsp->ch == ' ') {
/* Check for clear to end-of-line. */
cep = &curscr->lines[wy]->line[win->maxx - 1];
while (cep->ch == ' ' && cep->attr == 0)
--- 296,302 ----
&& wx <= lch) {
if (ce != NULL && win->maxx + win->begx ==
! curscr->maxx && wx > nlsp && nsp->ch == ' ') {
/* Check for clear to end-of-line. */
Perhaps it was not applied because it needs a human eye to spot what
is necessary, patch itself fails.
Julian Stacey <stacey@freefall.cdrom.com>