From eae953ba9ff3302a698115f34893f17bf458d2ea Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 30 May 2019 14:19:58 +0900 Subject: [PATCH] Rerender following lines when line number increased --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index d6085e3995..1344f52d15 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -332,7 +332,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 - if @previous_line_index or new_highest_in_this < @highest_in_this + if @previous_line_index or new_highest_in_this != @highest_in_this if @previous_line_index new_lines = whole_lines(index: @previous_line_index, line: @line) else