Skip to content

Commit

Permalink
wsetscrreg() required the cursor to be within the designated scroll r…
Browse files Browse the repository at this point in the history
…egion. This appears to no longer be necessary. See wmcbrine/PDCurses#165 (and a couple of commits subsequent to this one.)
  • Loading branch information
Bill-Gray committed Mar 13, 2024
1 parent 361aab8 commit 5a0d5be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdcurses/outopts.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ int wsetscrreg(WINDOW *win, int top, int bottom)
PDC_LOG(("wsetscrreg() - called: top %d bottom %d\n", top, bottom));

assert( win);
if (win && 0 <= top && top <= win->_cury &&
win->_cury <= bottom && bottom < win->_maxy)
if (win && 0 <= top && top <= bottom && bottom < win->_maxy)
{
win->_tmarg = top;
win->_bmarg = bottom;
Expand Down

0 comments on commit 5a0d5be

Please sign in to comment.