summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2016-03-27 00:13:00 +0100
committerpgen <p.gen.progs@gmail.com>2016-03-27 00:13:00 +0100
commit3c5a15fc8b4535e43bbaded8da2600834ebef541 (patch)
treee3f47d412b683f25e20ca1a8e11a9bc321517861
parent242516d80881574e463996a2293a23e8f152ea30 (diff)
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
-rw-r--r--smenu.c8
1 files 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);
}