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