From 000623837190281ded05e4da784f3a72b19f4aae Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Fri, 1 Aug 2014 15:31:01 -0400 Subject: [PATCH] Bash-4.3 patch 21 --- lib/readline/misc.c | 2 +- patchlevel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/readline/misc.c b/lib/readline/misc.c index da5c69647..a890cdadf 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 (); } diff --git a/patchlevel.h b/patchlevel.h index 6b5f365e3..bc7f5f809 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -25,6 +25,6 @@ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh looks for to find the patch level (for the sccs version string). */ -#define PATCHLEVEL 20 +#define PATCHLEVEL 21 #endif /* _PATCHLEVEL_H_ */ -- 2.39.2