version 1.1.1.1, 2014/07/30 08:16:45
|
version 1.1.1.2, 2016/11/03 13:35:37
|
Line 461 _rl_revert_all_lines ()
|
Line 461 _rl_revert_all_lines ()
|
saved_undo_list = 0; |
saved_undo_list = 0; |
/* Set up rl_line_buffer and other variables from history entry */ |
/* Set up rl_line_buffer and other variables from history entry */ |
rl_replace_from_history (entry, 0); /* entry->line is now current */ |
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 */ |
/* Undo all changes to this history entry */ |
while (rl_undo_list) |
while (rl_undo_list) |
rl_do_undo (); |
rl_do_undo (); |
Line 468 _rl_revert_all_lines ()
|
Line 469 _rl_revert_all_lines ()
|
the timestamp. */ |
the timestamp. */ |
FREE (entry->line); |
FREE (entry->line); |
entry->line = savestring (rl_line_buffer); |
entry->line = savestring (rl_line_buffer); |
entry->data = 0; |
|
} |
} |
entry = previous_history (); |
entry = previous_history (); |
} |
} |