summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Term/Complete.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Term/Complete.pm b/lib/Term/Complete.pm
index e20b2a66ce..4ae454144f 100644
--- a/lib/Term/Complete.pm
+++ b/lib/Term/Complete.pm
@@ -106,6 +106,7 @@ sub Complete {
$tty_saved_state = undef;
}
else {
+ chomp $tty_saved_state;
$tty_restore = qq($stty "$tty_saved_state");
}
}