From 3c5a15fc8b4535e43bbaded8da2600834ebef541 Mon Sep 17 00:00:00 2001
From: pgen
Date: Sun, 27 Mar 2016 00:13:00 +0100
Subject: Fix two bugs in the help line displaying code
- The help line is too long and can wrap when a scrollbar is present
- A window resizing event must deactivate the help line removal
---
smenu.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/smenu.c b/smenu.c
index 42a62c8..b3e1d25 100644
--- a/smenu.c
+++ b/smenu.c
@@ -563,11 +563,8 @@ help(win_t * win, term_t * term, int last_line)
{'b', "Arrows", 6},
{'n', "|", 1},
{'b', "h", 1},
- {'n', "/", 1},
{'b', "j", 1},
- {'n', "/", 1},
{'b', "k", 1},
- {'n', "/", 1},
{'b', "l", 1},
{'n', ",", 1},
{'b', "PgUp", 4},
@@ -3814,6 +3811,7 @@ sig_handler(int s)
if (got_winch)
{
got_winch = 0;
+ got_help_alrm = 0;
got_winch_alrm = 1;
}
@@ -5966,6 +5964,10 @@ main(int argc, char *argv[])
hlp_itv.it_interval.tv_usec = 0;
setitimer(ITIMER_REAL, &hlp_itv, NULL);
+ /* Calculate the new metadata and draw the window again */
+ /* """""""""""""""""""""""""""""""""""""""""""""""""""" */
+ last_line = build_metadata(word_a, &term, count, &win);
+
nl = disp_lines(word_a, &win, &toggle, current, count, search_mode,
search_buf, &term, last_line, tmp_max_word, &langinfo);
}
--
cgit v1.2.3