commit 2b438e6ef4e64aa096d7e6f795fb8a57c7a8c504
parent 8165b20fc1e77bdf7a015b3b360fb14ed54c89b0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 20 Nov 2017 19:57:33 +0100
input: make the macro key discoverable by giving feedback when undefined
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -101,8 +101,10 @@ void run_macro(void)
return;
}
- if (macro_length == 0)
+ if (macro_length == 0) {
+ statusline(HUSH, _("Macro is empty"));
return;
+ }
free(key_buffer);
key_buffer = (int *)nmalloc(macro_length * sizeof(int));