Fix review issue. Add 't.restore' before function call.

This commit is contained in:
kczulko 2017-09-14 09:34:06 +02:00
parent b6a3ca1937
commit e9fa4201fb
1 changed files with 1 additions and 0 deletions

View File

@ -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