mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-26 00:19:46 +00:00
Save a flushing line instead of discarding it
This commit is contained in:
parent
5e7d9dc718
commit
3e245fec90
1 changed files with 2 additions and 2 deletions
|
@ -1103,8 +1103,8 @@ impl EditorElement {
|
|||
if let Some(current_end) = end_row.as_mut() {
|
||||
if start_display.row() > *current_end + 1 {
|
||||
push_region(start_row, end_row);
|
||||
start_row = None;
|
||||
end_row = None;
|
||||
start_row = Some(start_display.row());
|
||||
end_row = Some(end_display.row());
|
||||
} else {
|
||||
// Merge two hunks.
|
||||
*current_end = end_display.row();
|
||||
|
|
Loading…
Reference in a new issue