diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:53:27 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:53:27 -0400 |
commit | f7a382fd09319b20ef4435b9b554183b605468c1 (patch) | |
tree | 445f363418c287fc9994c7b51d412e6765e3450a /macro.c | |
parent | 5263c0d88064fda96292335d12eec1733f91cdc9 (diff) |
readline-8.2 distribution sources and documentationreadline-8.2
Diffstat (limited to 'macro.c')
-rw-r--r-- | macro.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -276,6 +276,8 @@ rl_end_kbd_macro (int count, int ignore) } current_macro_index -= rl_key_sequence_length; + if (current_macro_index < 0) + current_macro_index = 0; current_macro[current_macro_index] = '\0'; RL_UNSETSTATE(RL_STATE_MACRODEF); |