ruby-changes:64921
From: aycabta <ko1@a...>
Date: Mon, 18 Jan 2021 02:18:37 +0900 (JST)
Subject: [ruby-changes:64921] 1aba1a5103 (master): [ruby/reline] Initialize a variable just in case
https://git.ruby-lang.org/ruby.git/commit/?id=1aba1a5103 From 1aba1a510304410a43bd51506b403534349f9341 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Thu, 14 Jan 2021 06:21:54 +0900 Subject: [ruby/reline] Initialize a variable just in case https://github.com/ruby/reline/commit/29b10f6e98 diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 474fe3c..3a2e6c8 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -377,6 +377,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L377 end new_highest_in_this = calculate_height_by_width(prompt_width + calculate_width(@line.nil? ? '' : @line)) # FIXME: end of logical line sometimes breaks + rendered = false if @add_newline_to_end_of_buffer rerender_added_newline @add_newline_to_end_of_buffer = false -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/