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
|
else
|
||||||
[ key_code.bytes, key_binding ]
|
[ key_code.bytes, key_binding ]
|
||||||
end
|
end
|
||||||
rescue TerminfoError
|
rescue Reline::Terminfo::TerminfoError
|
||||||
# capname is undefined
|
# capname is undefined
|
||||||
end
|
end
|
||||||
end.compact.to_h
|
end.compact.to_h
|
||||||
|
@ -295,7 +295,7 @@ class Reline::ANSI
|
||||||
if Reline::Terminfo.enabled?
|
if Reline::Terminfo.enabled?
|
||||||
begin
|
begin
|
||||||
@@output.write Reline::Terminfo.tigetstr('civis')
|
@@output.write Reline::Terminfo.tigetstr('civis')
|
||||||
rescue TerminfoError
|
rescue Reline::Terminfo::TerminfoError
|
||||||
# civis is undefined
|
# civis is undefined
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
@ -307,7 +307,7 @@ class Reline::ANSI
|
||||||
if Reline::Terminfo.enabled?
|
if Reline::Terminfo.enabled?
|
||||||
begin
|
begin
|
||||||
@@output.write Reline::Terminfo.tigetstr('cnorm')
|
@@output.write Reline::Terminfo.tigetstr('cnorm')
|
||||||
rescue TerminfoError
|
rescue Reline::Terminfo::TerminfoError
|
||||||
# cnorm is undefined
|
# cnorm is undefined
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue