commit f4c958e81064af5db7dac524556a18b1ad283624
parent 4b32c62674d5e81df62d54f118a1272445424fc4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 24 Sep 2018 21:29:44 +0200
bindings: allow using ^X to exit from the linter
One can use ^X to exit from the file browser and from the help viewer,
so... For symmetry.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -1350,6 +1350,9 @@ void shortcut_init(void)
add_to_sclist(MHELP, "Home", KEY_HOME, to_first_line, 0);
add_to_sclist(MHELP, "End", KEY_END, to_last_line, 0);
#endif
+#ifdef ENABLE_COLOR
+ add_to_sclist(MLINTER, "^X", 0, do_cancel, 0);
+#endif
#ifdef DEBUG
print_sclist();