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

ruby-changes:67295

From: aycabta <ko1@a...>
Date: Sun, 29 Aug 2021 20:30:38 +0900 (JST)
Subject: [ruby-changes:67295] 6fda457448 (master): [ruby/reline] Suppress warning; unused variable

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

From 6fda45744861c102ed594fae97cef43364b1f20f Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Wed, 18 Aug 2021 19:46:01 +0900
Subject: [ruby/reline] Suppress warning; unused variable

https://github.com/ruby/reline/commit/74a6124e8d
---
 lib/reline/line_editor.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index a9badf4..40d200d 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -605,7 +605,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L605
     visual_start = nil
     @dialog_lines_backup[:lines].each_with_index { |l, i|
       pr = prompt_list ? prompt_list[i] : prompt
-      vl, height = split_by_width(pr + l, @screen_size.last)
+      vl, _ = split_by_width(pr + l, @screen_size.last)
       if i == @dialog_lines_backup[:line_index]
         visual_start = visual_lines.size + @dialog_lines_backup[:started_from]
       end
@@ -680,7 +680,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L680
     visual_start = nil
     @dialog_lines_backup[:lines].each_with_index { |l, i|
       pr = prompt_list ? prompt_list[i] : prompt
-      vl, height = split_by_width(pr + l, @screen_size.last)
+      vl, _ = split_by_width(pr + l, @screen_size.last)
       if i == @dialog_lines_backup[:line_index]
         visual_start = visual_lines.size + @dialog_lines_backup[:started_from] + @dialog_vertical_offset
       end
-- 
cgit v1.1


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

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