ruby-changes:70021
From: ima1zumi <ko1@a...>
Date: Thu, 2 Dec 2021 23:41:55 +0900 (JST)
Subject: [ruby-changes:70021] ca33b59099 (master): [ruby/reline] fix `TerminfoError` -> `Reline::Terminfo::TerminfoError`
https://git.ruby-lang.org/ruby.git/commit/?id=ca33b59099 From ca33b590996481eb8c8081cdbe9c58cbdcaa3c9d Mon Sep 17 00:00:00 2001 From: ima1zumi <mariimaizumi5@g...> Date: Wed, 24 Nov 2021 19:24:51 +0900 Subject: [ruby/reline] fix `TerminfoError` -> `Reline::Terminfo::TerminfoError` https://github.com/ruby/reline/commit/c07b0ace6a --- lib/reline/ansi.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 9e2dffa0f8d..3a4ac42050f 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -68,7 +68,7 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L68 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 https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L295 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 https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L307 if Reline::Terminfo.enabled? begin @@output.write Reline::Terminfo.tigetstr('cnorm') - rescue TerminfoError + rescue Reline::Terminfo::TerminfoError # cnorm is undefined end else -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/