mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] fix TerminfoError
-> Reline::Terminfo::TerminfoError
https://github.com/ruby/reline/commit/c07b0ace6a
This commit is contained in:
parent
697d7b8d62
commit
ca33b59099
1 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ class Reline::ANSI
|
|||
else
|
||||
[ key_code.bytes, key_binding ]
|
||||
end
|
||||
rescue TerminfoError
|
||||
rescue Reline::Terminfo::TerminfoError
|
||||
# capname is undefined
|
||||
end
|
||||
end.compact.to_h
|
||||
|
@ -295,7 +295,7 @@ class Reline::ANSI
|
|||
if Reline::Terminfo.enabled?
|
||||
begin
|
||||
@@output.write Reline::Terminfo.tigetstr('civis')
|
||||
rescue TerminfoError
|
||||
rescue Reline::Terminfo::TerminfoError
|
||||
# civis is undefined
|
||||
end
|
||||
else
|
||||
|
@ -307,7 +307,7 @@ class Reline::ANSI
|
|||
if Reline::Terminfo.enabled?
|
||||
begin
|
||||
@@output.write Reline::Terminfo.tigetstr('cnorm')
|
||||
rescue TerminfoError
|
||||
rescue Reline::Terminfo::TerminfoError
|
||||
# cnorm is undefined
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue