|
|
pane_row_draw: check if the pane is visible or drawable - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit a210870a4f574df86886f2891e98b3ad12b257af |
|
|
 |
parent a16ef52f5f57272607cec7dbaa409f1debc1d929 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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(); |
|