nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 09d574bae9d326282771f293cc300cfdd940c6a1
parent b68d74effc294be6b80430450380005a33cba30f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed,  9 Jul 2025 11:37:18 +0200

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.

Diffstat:
Msrc/nano.c | 3+--
Msrc/prompt.c | 1-
Msrc/winio.c | 8+++++++-
3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -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(); } } diff --git a/src/prompt.c b/src/prompt.c @@ -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); diff --git a/src/winio.c b/src/winio.c @@ -3469,13 +3469,19 @@ 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); }