ruby-changes:68376
From: aycabta <ko1@a...>
Date: Mon, 11 Oct 2021 16:31:06 +0900 (JST)
Subject: [ruby-changes:68376] 6f41cab704 (master): [ruby/reline] Suppress warning, "instance variable @ambiguous_width not initialized"
https://git.ruby-lang.org/ruby.git/commit/?id=6f41cab704 From 6f41cab704d1b3dd44910e0e943dceebde6fcb1a Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Mon, 11 Oct 2021 16:21:50 +0900 Subject: [ruby/reline] Suppress warning, "instance variable @ambiguous_width not initialized" https://github.com/ruby/reline/commit/368f7e2f78 --- lib/reline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline.rb b/lib/reline.rb index 2f2b017d50..b872fe6945 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -457,7 +457,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L457 private def may_req_ambiguous_char_width @ambiguous_width = 2 if Reline::IOGate == Reline::GeneralIO or STDOUT.is_a?(File) - return if @ambiguous_width + return if defined? @ambiguous_width Reline::IOGate.move_cursor_column(0) begin output.write "\u{25bd}" -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/