commit e1667144d3eeec6bcc8297fce98022895a3382cf
parent 3b6802619d7a81150077f236e1bfaa5d4c8d5860
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 28 Jul 2020 20:58:37 +0200
pane_setpos: pedantic clarify fix, no functional change
p->pos was also set in pane_row_redraw() implicitly.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -655,10 +655,11 @@ 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 */