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