aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-01-14 06:21:54 +0900
committeraycabta <aycabta@gmail.com>2021-01-18 02:07:37 +0900
commit1aba1a510304410a43bd51506b403534349f9341 (patch)
tree32a78413285df32292d41745f7e239d756fc8812
parentf96eaf54a2f0662749c9d43bbbe861d905b6492f (diff)
downloadruby-1aba1a510304410a43bd51506b403534349f9341.tar.gz
[ruby/reline] Initialize a variable just in case
https://github.com/ruby/reline/commit/29b10f6e98
-rw-r--r--lib/reline/line_editor.rb1
1 files changed, 1 insertions, 0 deletions
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
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