From 59ae6411f5889abe2a5bd226354b749565baa8b7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 10 Oct 2013 22:58:41 +0100 Subject: [PATCH] Only allow recording macro to register a-z --- src/normal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/normal.cc b/src/normal.cc index 43a8eba7..5655a9fb 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -716,7 +716,8 @@ void start_or_end_macro_recording(Context& context, int) context.client().stop_recording(); else on_next_key_with_autoinfo(context, [](Key key, Context& context) { - if (key.modifiers == Key::Modifiers::None) + if (key.modifiers == Key::Modifiers::None and + key.key >= 'a' and key.key <= 'z') context.client().start_recording(key.key); }, "╭──┤record macro├──╮\n"