From 9596c21a60a21a47dd214e8aab531131f84cb3dd Mon Sep 17 00:00:00 2001 From: Hugo Wallenburg Date: Wed, 22 Jul 2020 14:18:41 +0200 Subject: Allows editing old history commands --- dragon/console.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dragon/console.rb b/dragon/console.rb index 5d5bd93..b257265 100644 --- a/dragon/console.rb +++ b/dragon/console.rb @@ -410,7 +410,7 @@ S end if @command_history_index < (@command_history.length - 1) @command_history_index += 1 - self.current_input_str = @command_history[@command_history_index].clone + self.current_input_str = @command_history[@command_history_index].dup end elsif args.inputs.keyboard.key_down.down if @command_history_index == 0 @@ -419,7 +419,7 @@ S @nonhistory_input = '' elsif @command_history_index > 0 @command_history_index -= 1 - self.current_input_str = @command_history[@command_history_index].clone + self.current_input_str = @command_history[@command_history_index].dup end elsif inputs_scroll_up_full? args scroll_up_full -- cgit v1.2.3