commit bf35f9489c2db401512630fbec8c989393eca440
parent e1667144d3eeec6bcc8297fce98022895a3382cf
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 29 Jul 2020 18:37:18 +0200
Revert "pane_setpos: pedantic clarify fix, no functional change"
This reverts commit e1667144d3eeec6bcc8297fce98022895a3382cf.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -655,11 +655,10 @@ pane_setpos(struct pane *p, off_t pos)
if (pos == p->pos)
return; /* no change */
- p->pos = pos;
-
/* is on different scroll region? mark dirty */
if (((p->pos - (p->pos % p->height)) / p->height) !=
((pos - (pos % p->height)) / p->height)) {
+ p->pos = pos;
p->dirty = 1;
} else {
/* only redraw the 1 or 2 dirty rows */