From 9ab019f1bc08125ae3d58a8369d1462976d3462b Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Thu, 8 Aug 2019 20:28:35 -0500 Subject: [PATCH] Fixed console command history incorrect index for going down through history --- lib/ui/console.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/console.rb b/lib/ui/console.rb index 050a4a3..d5965da 100644 --- a/lib/ui/console.rb +++ b/lib/ui/console.rb @@ -80,7 +80,7 @@ class IMICFPS when Gosu::KbDown @command_history_index += 1 if @command_history_index > @command_history.size - 1 - @command_history_index = @command_history.size - 1 + @command_history_index = @command_history.size @text_input.text = "" else @text_input.text = @command_history[@command_history_index]