NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/51819: curses vs. news/tin display problems



On Wed, Jan 11, 2017 at 03:30:01PM +0000, Valery Ushakov wrote:
>  
>    The interaction of these functions with setscrreg() is currently
>    unspecified.
>  

Try the attached patch, I have removed the check where the cursor is and
just scroll the requested window.

-- 
Brett Lymn
Let go, or be dragged - Zen proverb.
Index: scroll.c
===================================================================
RCS file: /cvsroot/src/lib/libcurses/scroll.c,v
retrieving revision 1.23
diff -u -r1.23 scroll.c
--- scroll.c	6 Jan 2017 13:53:18 -0000	1.23
+++ scroll.c	11 Jan 2017 21:20:03 -0000
@@ -100,12 +100,7 @@
 #ifdef DEBUG
 	__CTRACE(__CTRACE_WINDOW, "wscrl: y=%d\n", oy);
 #endif
-	if (oy < win->scr_t || oy > win->scr_b)
-		/* Outside scrolling region */
-		wmove(win, 0, 0);
-	else
-		/* Inside scrolling region */
-		wmove(win, win->scr_t, 0);
+	wmove(win, win->scr_t, 0);
 	winsdelln(win, 0 - nlines);
 	wmove(win, oy, ox);
 


Home | Main Index | Thread Index | Old Index