summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd83fa0)
raw | patch | inline | side by side (parent: cd83fa0)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 28 Dec 2011 22:14:27 +0000 (23:14 +0100) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 28 Dec 2011 22:14:27 +0000 (23:14 +0100) |
src/screen_keydef.c | patch | blob | history |
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 083696460a81cc3215985bdbd40c2229711be94d..f31e6c5542c09a554486e128c6687e56eee7f1cb 100644 (file)
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
wrefresh(lw->w);
}
+/** lw->start the last time switch_to_subcmd_mode() was called */
+static unsigned saved_start = 0;
+
static void
switch_to_subcmd_mode(int cmd)
{
assert(subcmd == -1);
+ saved_start = lw->start;
+
subcmd = cmd;
list_window_reset(lw);
check_subcmd_length();
list_window_set_cursor(lw, subcmd);
subcmd = -1;
+ lw->start = saved_start;
+
keydef_repaint();
}