[PATCH] Fixing the :help Text
Matt Garriott <[email protected]>
| Newsgroups | gmane.comp.window-managers.ratpoison.devel |
|---|---|
| Message-ID | <CAGdKr4+c8N--Tp5YnU9T6g-Cx9adw9=YCQiSP+ODbZTSOQkB4A@mail.gmail.com> |
Hi All, I found a defect in the :help command. When you specify a keymap the 'Command Key' string will always show your escape key, not the key sequence used for the currently showing keymap. The attached patch corrects this defect. Thanks, -Matt P.S. This is my first time submitting a patch to this project, so if this is not the appropriate avenue please let me know. _______________________________________________ Ratpoison-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ratpoison-devel
0001-Use-specified-keymap-for-command-key-string.patch
(application/octet-stream, 858 B)
From 4626e012e0a064bb4056ad1eb4ef1f62a14b20d5 Mon Sep 17 00:00:00 2001 From: Matt Garriott <[email protected]> Date: Tue, 12 Feb 2013 14:00:42 -0700 Subject: [PATCH] Use specified keymap for command key string --- src/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.c b/src/actions.c index 9227feb..0770a9e 100644 --- a/src/actions.c +++ b/src/actions.c @@ -3387,7 +3387,7 @@ cmd_help (int interactive, struct cmdarg **args) "Command key: ", -1); - keysym_name = keysym_to_string (prefix_key.sym, prefix_key.state); + keysym_name = keysym_to_string (map->actions->key, map->actions->state); rp_draw_string (s, s->help_window, STYLE_NORMAL, 10 + rp_text_width (s, "Command key: ", -1), y + FONT_ASCENT(s), -- 1.8.1.2