mirror of https://github.com/sbt/sbt.git
Merge pull request #6166 from eatkins/watch-prompt-fix
Fix watch shell option
This commit is contained in:
commit
13b09bcd8f
|
|
@ -222,11 +222,9 @@ object MainLoop {
|
|||
val (restoreTerminal, termState) = channelName.flatMap(exchange.channelForName) match {
|
||||
case Some(c) =>
|
||||
val prevTerminal = ITerminal.set(c.terminal)
|
||||
val prevPrompt = c.terminal.prompt
|
||||
// temporarily set the prompt to running during task evaluation
|
||||
c.terminal.setPrompt(Prompt.Running)
|
||||
(() => {
|
||||
if (c.terminal.prompt != Prompt.Watch) c.terminal.setPrompt(prevPrompt)
|
||||
ITerminal.set(prevTerminal)
|
||||
c.terminal.flush()
|
||||
}) -> progressState.put(Keys.terminalKey, Terminal(c.terminal))
|
||||
|
|
|
|||
Loading…
Reference in New Issue