diff options
author | Chet Ramey <chet.ramey@case.edu> | 2014-08-01 15:31:01 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2014-08-01 15:31:01 -0400 |
commit | 000623837190281ded05e4da784f3a72b19f4aae (patch) | |
tree | eb81e29f88677da52916b031459f55ba2a09945e /lib/readline/misc.c | |
parent | daefb2c5197a17116586b411cd3f12d249cf4e4f (diff) | |
download | android_external_bash-000623837190281ded05e4da784f3a72b19f4aae.tar.gz android_external_bash-000623837190281ded05e4da784f3a72b19f4aae.tar.bz2 android_external_bash-000623837190281ded05e4da784f3a72b19f4aae.zip |
Bash-4.3 patch 21
Diffstat (limited to 'lib/readline/misc.c')
-rw-r--r-- | lib/readline/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline/misc.c b/lib/readline/misc.c index da5c696..a890cda 100644 --- a/lib/readline/misc.c +++ b/lib/readline/misc.c @@ -461,6 +461,7 @@ _rl_revert_all_lines () saved_undo_list = 0; /* Set up rl_line_buffer and other variables from history entry */ rl_replace_from_history (entry, 0); /* entry->line is now current */ + entry->data = 0; /* entry->data is now current undo list */ /* Undo all changes to this history entry */ while (rl_undo_list) rl_do_undo (); @@ -468,7 +469,6 @@ _rl_revert_all_lines () the timestamp. */ FREE (entry->line); entry->line = savestring (rl_line_buffer); - entry->data = 0; } entry = previous_history (); } |