Use correct bias when calculating next_row_end

This commit is contained in:
Antonio Scandurra 2021-05-04 16:13:01 +02:00
parent 7bd192bdfb
commit c135c84ef0

View file

@ -967,7 +967,7 @@ impl BufferView {
map.line_len(display_rows.end, app).unwrap(),
);
let next_row_end = next_row_display_end
.to_buffer_offset(map, Bias::Left, app)
.to_buffer_offset(map, Bias::Right, app)
.unwrap();
let mut text = String::new();