Project

General

Profile

« Previous | Next » 

Revision 7c6e4bc7

Added by verdy89 over 1 year ago

[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-_

  • Revert the first implemantation

  • Implemented redo by sharing @past_lines between undo and redo

  • 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

https://github.com/ruby/reline/commit/0b2d9fab5f