From 17f03f850e49b36e59f7381680e31fdc5fc45ed1 Mon Sep 17 00:00:00 2001 From: echo <91651232+exhq@users.noreply.github.com> Date: Wed, 12 Oct 2022 13:53:58 +0330 Subject: when --- src/jsMain/kotlin/moe/nea89/website/KConsole.kt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/jsMain/kotlin/moe/nea89/website/KConsole.kt') diff --git a/src/jsMain/kotlin/moe/nea89/website/KConsole.kt b/src/jsMain/kotlin/moe/nea89/website/KConsole.kt index c5850fc..9b073a2 100644 --- a/src/jsMain/kotlin/moe/nea89/website/KConsole.kt +++ b/src/jsMain/kotlin/moe/nea89/website/KConsole.kt @@ -31,7 +31,6 @@ class KConsole( private lateinit var uninjectKeyHandler: () -> Unit val fileAccessor = fileSystem?.let { FileAccessor(it) } - var wholecommand = "" var currenthistory = 0 var commandHistory : Array = emptyArray() var PS1: KConsole.() -> String = { "$" } @@ -145,13 +144,9 @@ class KConsole( return } val command = parts[0] - wholecommand = "" println("whole command:") - for (element in parts){ - wholecommand += element + " " - } - println(wholecommand) - commandHistory += wholecommand + println(commandLine) + commandHistory += commandLine val arguments = parts.drop(1) val commandThing = commands[command] -- cgit