summaryrefslogtreecommitdiffstats
path: root/smenu.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-02-23 09:39:35 +0100
committerpgen <p.gen.progs@gmail.com>2018-02-28 22:46:31 +0100
commit8986a5991cad7ea272b96cbe5d6825f28a944c60 (patch)
tree8427e28ba1575b2e2263069f21f51070d5cebd74 /smenu.c
parent48b54fe9c1dd903273511c0f8158f67553175866 (diff)
Allow ctrl-L to redraw the window
Diffstat (limited to 'smenu.c')
-rw-r--r--smenu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/smenu.c b/smenu.c
index 38aff12..62d5dc0 100644
--- a/smenu.c
+++ b/smenu.c
@@ -8625,6 +8625,14 @@ main(int argc, char * argv[])
search_buf, &term, last_line, tmp_word, &langinfo);
break;
+ case 0x0c: /* ^L */
+ if (current < win.start || current > win.end)
+ 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_word, &langinfo);
+ break;
+
enter:
case 0x0d: /* CR */
{