We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b8d15 commit 6973087Copy full SHA for 6973087
jars/lw_Console.jar
22 Bytes
src/org/lazywizard/console/overlay/v2/panels/ConsoleOverlayPanel.kt
@@ -1024,7 +1024,7 @@ class ConsoleOverlayPanel(private val context: CommandContext) : BaseCustomUIPan
1024
1025
//Only save if the command entered isnt equal to the one before, and those that arent blank
1026
lastCommandIndex = 0
1027
- if (lastCommands.getOrNull(0) != commandInput && commandInput.isNotBlank() && !commandInput.lowercase().startsWith("history")) {
+ if ( (lastCommands.getOrNull(0)?.trim() != commandInput.trim()) && commandInput.isNotBlank() && !commandInput.lowercase().startsWith("history")) {
1028
lastCommands.add(0, commandInput)
1029
if (lastCommands.size > maxSavedCommands) {
1030
lastCommands.removeLast()
0 commit comments