From: Chet Ramey Date: Mon, 11 Aug 2014 15:05:02 +0000 (-0400) Subject: Readline-6.3 patch 8 X-Git-Tag: readline-7.0-alpha~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73b98f779b388a5d0624e02e8bb187246e3e396;p=thirdparty%2Freadline.git Readline-6.3 patch 8 --- diff --git a/misc.c b/misc.c index da5c696..a890cda 100644 --- a/misc.c +++ b/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 b/patchlevel index e340b58..6c10f12 100644 --- a/patchlevel +++ b/patchlevel @@ -1,3 +1,3 @@ # Do not edit -- exists only for use by patch -7 +8