diff --git a/src/com/strongjoshua/console/GUIConsole.java b/src/com/strongjoshua/console/GUIConsole.java index 9e554ea..370951e 100644 --- a/src/com/strongjoshua/console/GUIConsole.java +++ b/src/com/strongjoshua/console/GUIConsole.java @@ -612,6 +612,7 @@ protected KeyListener (TextField tf) { } if (keycode == Keys.ENTER && !hidden) { + commandHistory.getNextCommand(); // Makes up arrow key repeat the same command after pressing enter return display.submit(); } else if (keycode == Keys.UP && !hidden) { input.setText(commandHistory.getPreviousCommand());