]> granicus.if.org Git - neomutt/commitdiff
fix refresh of pager
authorRichard Russon <rich@flatcap.org>
Thu, 14 Apr 2016 11:40:29 +0000 (12:40 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 14 Apr 2016 15:14:43 +0000 (16:14 +0100)
Sidebar didn't redraw properly when in the pager, or help.

pager.c

diff --git a/pager.c b/pager.c
index 223ea70f8b39b26a6616fe2e6ea952cb2695d98e..3499868a7948043b1395899ea3fb6f5ddd4a939a 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -1497,7 +1497,7 @@ display_line (FILE *f, LOFF_T *last_pos, struct line_t **lineInfo, int n,
    * a newline (grr!).
    */
 #ifndef USE_SLANG_CURSES
-    if (col < COLS)
+    if (col < (COLS - SidebarWidth))
 #endif
       addch ('\n');
 
@@ -2541,8 +2541,10 @@ search_next:
          ch = 0;
        }
 
-       if (option (OPTFORCEREDRAWPAGER))
+       if (option (OPTFORCEREDRAWPAGER)) {
          redraw = REDRAW_FULL;
+         sb_draw();
+       }
        unset_option (OPTFORCEREDRAWINDEX);
        unset_option (OPTFORCEREDRAWPAGER);
        break;