summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline')
-rw-r--r--lib/reline/ansi.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb
index f8e82c199d..d590d00ad1 100644
--- a/lib/reline/ansi.rb
+++ b/lib/reline/ansi.rb
@@ -91,6 +91,8 @@ class Reline::ANSI
rescue Errno::EIO
# Maybe the I/O has been closed.
nil
+ rescue Errno::ENOTTY
+ nil
end
@@in_bracketed_paste_mode = false