1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Suppress warning; unused variable

74a6124e8d
This commit is contained in:
aycabta 2021-08-18 19:46:01 +09:00
parent 1e527c8a55
commit 6fda457448

View file

@ -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