mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Diff lines one chunk at a time after discovering indentation
This commit is contained in:
parent
70c9b8f8fd
commit
127d03516f
1 changed files with 5 additions and 2 deletions
|
@ -225,10 +225,13 @@ impl Codegen {
|
|||
}
|
||||
}
|
||||
|
||||
if lines.peek().is_some() {
|
||||
if line_indent.is_some() {
|
||||
hunks_tx.send(diff.push_new(&new_text)).await?;
|
||||
hunks_tx.send(diff.push_new("\n")).await?;
|
||||
new_text.clear();
|
||||
}
|
||||
|
||||
if lines.peek().is_some() {
|
||||
hunks_tx.send(diff.push_new("\n")).await?;
|
||||
line_indent = None;
|
||||
first_line = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue