Introduction
Introduction Statistics Contact Development Disclaimer Help
pane_row_draw: check if the pane is visible or drawable - sfeed_curses - sfeed …
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit a210870a4f574df86886f2891e98b3ad12b257af
parent a16ef52f5f57272607cec7dbaa409f1debc1d929
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 10 Feb 2021 17:38:06 +0100
pane_row_draw: check if the pane is visible or drawable
pane_row_draw() is also called in pane_setpos(), but this should then not draw.
No functional change intended in the current program though.
Diffstat:
M sfeed_curses.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -714,6 +714,9 @@ pane_row_draw(struct pane *p, off_t pos, int selected)
{
struct row *row;
+ if (p->hidden || !p->width || !p->height)
+ return;
+
row = pane_row_get(p, pos);
cursorsave();
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.