mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Rerender following lines when line number increased
This commit is contained in:
parent
1cf9f79342
commit
eae953ba9f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue