diff --git a/main/command/src/main/scala/sbt/State.scala b/main/command/src/main/scala/sbt/State.scala index 0d23776ae..910a056ab 100644 --- a/main/command/src/main/scala/sbt/State.scala +++ b/main/command/src/main/scala/sbt/State.scala @@ -183,7 +183,6 @@ object State { log.debug(s"> $x") f(x, s.copy(remainingCommands = xs, history = x :: s.history)) } - s.copy(remainingCommands = s.remainingCommands.drop(1)) def :::(newCommands: Seq[String]): State = s.copy(remainingCommands = newCommands ++ s.remainingCommands) def ::(command: String): State = (command :: Nil) ::: this def ++(newCommands: Seq[Command]): State = s.copy(definedCommands = (s.definedCommands ++ newCommands).distinct) @@ -254,4 +253,4 @@ object State { } private[sbt] def getBoolean(s: State, key: AttributeKey[Boolean], default: Boolean): Boolean = s.get(key) getOrElse default -} \ No newline at end of file +}