Blame bash-4.3-readline-revert-lines.patch
|
Ondrej Oprala |
eb71c8 |
*** ../bash-4.3-patched/lib/readline/misc.c 2012-09-01 18:03:11.000000000 -0400
|
|
Ondrej Oprala |
eb71c8 |
--- lib/readline/misc.c 2014-06-30 13:41:19.000000000 -0400
|
|
Ondrej Oprala |
eb71c8 |
***************
|
|
Ondrej Oprala |
eb71c8 |
*** 462,465 ****
|
|
Ondrej Oprala |
eb71c8 |
--- 462,466 ----
|
|
Ondrej Oprala |
eb71c8 |
/* Set up rl_line_buffer and other variables from history entry */
|
|
Ondrej Oprala |
eb71c8 |
rl_replace_from_history (entry, 0); /* entry->line is now current */
|
|
Ondrej Oprala |
eb71c8 |
+ entry->data = 0; /* entry->data is now current undo list */
|
|
Ondrej Oprala |
eb71c8 |
/* Undo all changes to this history entry */
|
|
Ondrej Oprala |
eb71c8 |
while (rl_undo_list)
|
|
Ondrej Oprala |
eb71c8 |
***************
|
|
Ondrej Oprala |
eb71c8 |
*** 469,473 ****
|
|
Ondrej Oprala |
eb71c8 |
FREE (entry->line);
|
|
Ondrej Oprala |
eb71c8 |
entry->line = savestring (rl_line_buffer);
|
|
Ondrej Oprala |
eb71c8 |
- entry->data = 0;
|
|
Ondrej Oprala |
eb71c8 |
}
|
|
Ondrej Oprala |
eb71c8 |
entry = previous_history ();
|
|
Ondrej Oprala |
eb71c8 |
--- 470,473 ----
|