[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Potential bug in the handling of scrolling regions and newlines?
From: |
Thomas Dickey |
Subject: |
Re: Potential bug in the handling of scrolling regions and newlines? |
Date: |
Sat, 29 Jul 2017 15:43:36 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Jul 28, 2017 at 10:45:03PM -0500, Rob King wrote:
...
thanks
> I call this a "potential" bug because I don't know if printing a
> newline on the last line of a window with a defined scrolling region
> is something that "you're not supposed to do"...if this is indeed a
The library should handle it (since all of the data are valid).
Incidentally, I checked Solaris curses, thinking to make it compatible
(whether to forbid movement outside the scrolling regions or not...),
but Solaris curses also dumped core.
ditto for NetBSD curses (I could digress).
Solaris curses does no error-checking.
NetBSD curses might sometime do error-checking.
ncurses tries to do error-checking ;-)
> bug, I believe the fix would be to change the `else' above to
>
>
> } else if (*ypos < win->_maxy) {
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature