summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-08-18 19:46:01 +0900
committeraycabta <aycabta@gmail.com>2021-08-29 20:30:32 +0900
commit6fda45744861c102ed594fae97cef43364b1f20f (patch)
tree45e6ef4612df069095ea47f8b5bcabb8efdb282b
parent1e527c8a55e9b3e599894e1aa0fabdc76f86aa8f (diff)
[ruby/reline] Suppress warning; unused variable
https://github.com/ruby/reline/commit/74a6124e8d
-rw-r--r--lib/reline/line_editor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index a9badf4845..40d200df01 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -605,7 +605,7 @@ class Reline::LineEditor
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
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