mirror of https://github.com/sbt/sbt.git
Fix review issue. Add 't.restore' before function call.
This commit is contained in:
parent
b6a3ca1937
commit
e9fa4201fb
|
|
@ -119,6 +119,7 @@ private[sbt] object JLine {
|
|||
*/
|
||||
def usingTerminal[T](f: jline.Terminal => T): T =
|
||||
withTerminal { t =>
|
||||
t.restore
|
||||
val result = f(t)
|
||||
t.restore
|
||||
result
|
||||
|
|
|
|||
Loading…
Reference in New Issue