[ruby/reline] Implement the redo command (https://github.com/ruby/reline/pull/707)
Implement the redo command
Commented out a test that does not pass
Changed key assignment for redo from "\C-[" to "\C-g"
Changed redo key assignment from \C-g to \M-\C-_
\C-g
\M-\C-_
Revert the first implemantation
Implemented redo by sharing @past_lines between undo and redo
@past_lines
Fixed the index of past_lines that is updated when the cursor is moved
Fixed deletion of the redo history in regular input
Renamed variables: past_lines -> input_lines
Rename @position to @input_lines_position
Deleted unused variables: @old_byte_pointer and @old_line_index
@old_byte_pointer
@old_line_index
https://github.com/ruby/reline/commit/0b2d9fab5f
[ruby/reline] Implement the redo command
(https://github.com/ruby/reline/pull/707)
Implement the redo command
Commented out a test that does not pass
Changed key assignment for redo from "\C-[" to "\C-g"
Changed redo key assignment from
\C-gto\M-\C-_Revert the first implemantation
Implemented redo by sharing
@past_linesbetween undo and redoFixed the index of past_lines that is updated when the cursor is moved
Fixed deletion of the redo history in regular input
Renamed variables: past_lines -> input_lines
Rename @position to @input_lines_position
Deleted unused variables:
@old_byte_pointerand@old_line_indexhttps://github.com/ruby/reline/commit/0b2d9fab5f