display: when resizing, redraw the bottom bars also when in file browser

This fixes https://savannah.gnu.org/bugs/?67293.

Bug existed since version 8.2, commit fe0b928b.
This commit is contained in:
Benno Schulenberg
2025-07-09 11:37:18 +02:00
parent b68d74effc
commit 09d574bae9
3 changed files with 8 additions and 4 deletions

View File

@@ -1075,8 +1075,7 @@ void regenerate_screen(void)
/* If we have an open buffer, redraw the contents of the subwindows. */
if (openfile) {
ensure_firstcolumn_is_aligned();
if (currmenu & ~(MBROWSER|MWHEREISFILE|MGOTODIR))
draw_all_subwindows();
draw_all_subwindows();
}
}

View File

@@ -446,7 +446,6 @@ functionptrtype acquire_an_answer(int *actual, bool *listed,
#ifndef NANO_TINY
/* If the window size changed, go reformat the prompt string. */
if (input == THE_WINDOW_RESIZED) {
refresh_func(); /* Only needed when in file browser. */
*actual = THE_WINDOW_RESIZED;
#ifdef ENABLE_HISTORIES
free(stored_string);

View File

@@ -3469,12 +3469,18 @@ void full_refresh(void)
* the contents of the edit window, and the bottom bars. */
void draw_all_subwindows(void)
{
titlebar(title);
if (currmenu & ~(MBROWSER|MWHEREISFILE|MGOTODIR))
titlebar(title);
#ifdef ENABLE_HELP
if (inhelp) {
close_buffer();
wrap_help_text_into_buffer();
} else
#endif
#ifdef ENABLE_BROWSER
if (currmenu & (MBROWSER|MWHEREISFILE|MGOTODIR))
browser_refresh();
else
#endif
edit_refresh();
bottombars(currmenu);