ruby-changes:67306
From: aycabta <ko1@a...>
Date: Sun, 29 Aug 2021 20:30:44 +0900 (JST)
Subject: [ruby-changes:67306] 06bd48aba8 (master): [ruby/reline] Remove unnecessary metadata between lines
https://git.ruby-lang.org/ruby.git/commit/?id=06bd48aba8 From 06bd48aba8b24e73b1dac8dfdc1dc0f36a733c11 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 25 Aug 2021 16:27:24 +0900 Subject: [ruby/reline] Remove unnecessary metadata between lines https://github.com/ruby/reline/commit/83928249e3 --- lib/reline/line_editor.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 5a39ef2..a935fa9 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -598,6 +598,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L598 @dialog_lines_backup[:lines].each_with_index { |l, i| pr = prompt_list ? prompt_list[i] : prompt vl, _ = split_by_width(pr + l, @screen_size.last) + vl.compact! if i == @dialog_lines_backup[:line_index] visual_start = visual_lines.size + @dialog_lines_backup[:started_from] end @@ -678,6 +679,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L679 @dialog_lines_backup[:lines].each_with_index { |l, i| pr = prompt_list ? prompt_list[i] : prompt vl, _ = split_by_width(pr + l, @screen_size.last) + vl.compact! 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/