bash-4.3-readline-revert-lines.patch 666 B

12345678910111213141516171819
  1. *** ../bash-4.3-patched/lib/readline/misc.c 2012-09-01 18:03:11.000000000 -0400
  2. --- lib/readline/misc.c 2014-06-30 13:41:19.000000000 -0400
  3. ***************
  4. *** 462,465 ****
  5. --- 462,466 ----
  6. /* Set up rl_line_buffer and other variables from history entry */
  7. rl_replace_from_history (entry, 0); /* entry->line is now current */
  8. + entry->data = 0; /* entry->data is now current undo list */
  9. /* Undo all changes to this history entry */
  10. while (rl_undo_list)
  11. ***************
  12. *** 469,473 ****
  13. FREE (entry->line);
  14. entry->line = savestring (rl_line_buffer);
  15. - entry->data = 0;
  16. }
  17. entry = previous_history ();
  18. --- 470,473 ----