From: Richard Russon Date: Thu, 14 Apr 2016 11:40:29 +0000 (+0100) Subject: fix refresh of pager X-Git-Tag: neomutt-20160416~5^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f77e5bc1296b0613f8882313e0d519c130e9875e;p=neomutt fix refresh of pager Sidebar didn't redraw properly when in the pager, or help. --- diff --git a/pager.c b/pager.c index 223ea70f8..3499868a7 100644 --- 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;