Commit 2b438e6e authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

input: make the macro key discoverable by giving feedback when undefined

No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
...@@ -101,8 +101,10 @@ void run_macro(void) ...@@ -101,8 +101,10 @@ void run_macro(void)
return; return;
} }
if (macro_length == 0) if (macro_length == 0) {
statusline(HUSH, _("Macro is empty"));
return; return;
}
free(key_buffer); free(key_buffer);
key_buffer = (int *)nmalloc(macro_length * sizeof(int)); key_buffer = (int *)nmalloc(macro_length * sizeof(int));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment