Skip to content

Commit

Permalink
fix TerminfoError -> Reline::Terminfo::TerminfoError
Browse files Browse the repository at this point in the history
  • Loading branch information
ima1zumi committed Nov 24, 2021
1 parent c9f5112 commit c07b0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/reline/ansi.rb
Expand Up @@ -73,7 +73,7 @@ def self.set_default_key_bindings_terminfo(config)
else
[ key_code.bytes, key_binding ]
end
rescue TerminfoError
rescue Reline::Terminfo::TerminfoError
# capname is undefined
end
end.compact.to_h
Expand Down Expand Up @@ -300,7 +300,7 @@ def self.hide_cursor
if Reline::Terminfo.enabled?
begin
@@output.write Reline::Terminfo.tigetstr('civis')
rescue TerminfoError
rescue Reline::Terminfo::TerminfoError
# civis is undefined
end
else
Expand All @@ -312,7 +312,7 @@ def self.show_cursor
if Reline::Terminfo.enabled?
begin
@@output.write Reline::Terminfo.tigetstr('cnorm')
rescue TerminfoError
rescue Reline::Terminfo::TerminfoError
# cnorm is undefined
end
else
Expand Down

0 comments on commit c07b0ac

Please sign in to comment.