diff --git a/src/global.c b/src/global.c index 9cb5274..656d0f9 100644 --- a/src/global.c +++ b/src/global.c @@ -32,9 +32,6 @@ bool inhelp = FALSE; /* Indicates we are displaying the help text. */ char *title = NULL; /* Title of the help text. */ -bool window_went_below_76 = FALSE; - /* Gives the help text the original look when window size jumps - * from something below 76 to directly something above 76. */ #ifndef NANO_TINY volatile sig_atomic_t sigwinch_counter = 0; diff --git a/src/help.c b/src/help.c index 1c1452f..ec1d461 100644 --- a/src/help.c +++ b/src/help.c @@ -173,10 +173,8 @@ void do_help(void) if (kbinput == KEY_WINCH) { kbinput = ERR; /* Rewrap if needed, else refresh. */ - if (COLS < 76 || window_went_below_76) { - window_went_below_76 = COLS < 76 ? TRUE : FALSE; + if (COLS < 76) display_the_help_text(TRUE); - } continue; } #endif diff --git a/src/nano.c b/src/nano.c index caa45e8..b26fbc8 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1374,10 +1374,8 @@ void regenerate_screen(void) /* Redraw the contents of the windows that need it. */ total_refresh(); - if (currmenu == MFINDINHELP && (COLS < 76 || window_went_below_76)) { - window_went_below_76 = COLS < 76 ? TRUE : FALSE; + if (currmenu == MFINDINHELP && (COLS < 76)) display_the_help_text(TRUE); - } } /* If allow is FALSE, block any SIGWINCH signal. If allow is TRUE, diff --git a/src/proto.h b/src/proto.h index 4b31504..d8caeac 100644 --- a/src/proto.h +++ b/src/proto.h @@ -28,7 +28,6 @@ extern bool inhelp; extern char *title; -extern bool window_went_below_76; #ifndef NANO_TINY extern volatile sig_atomic_t sigwinch_counter;