aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-30 14:19:58 +0900
committeraycabta <aycabta@gmail.com>2019-05-30 14:19:58 +0900
commiteae953ba9ff3302a698115f34893f17bf458d2ea (patch)
treef973b912be34348b1eb0029b0281f4f4378f5d1a
parent1cf9f79342c517e3f12ba614ad874b1d619af5bc (diff)
downloadruby-eae953ba9ff3302a698115f34893f17bf458d2ea.tar.gz
Rerender following lines when line number increased
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
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