[前][次][番号順一覧][スレッド一覧]

ruby-changes:58525

From: Jeremy <ko1@a...>
Date: Thu, 31 Oct 2019 17:53:01 +0900 (JST)
Subject: [ruby-changes:58525] d6ed7a984c (master): Fix verbose warning being emitted

https://git.ruby-lang.org/ruby.git/commit/?id=d6ed7a984c

From d6ed7a984c8fd991ce2614d2f228239f8eb490b5 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Sun, 27 Oct 2019 15:23:05 -0700
Subject: Fix verbose warning being emitted

Fixes Ruby Bug 16281.

diff --git a/lib/reline.rb b/lib/reline.rb
index f8ffd5a..0873e9b 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -319,7 +319,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L319
 
     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 ambiguous_width
       Reline::IOGate.move_cursor_column(0)
       print "\u{25bd}"
       @ambiguous_width = Reline::IOGate.cursor_pos.x
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]