mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Bias the start of an autoindent request towards the right for new text
When a newline is inserted, this prevents the request from including the line on which the newline got inserted.
This commit is contained in:
parent
451f0e7adb
commit
18e5d75fd3
1 changed files with 1 additions and 1 deletions
|
@ -1536,7 +1536,7 @@ impl Buffer {
|
||||||
let ranges = edit.ranges.iter().map(|range| {
|
let ranges = edit.ranges.iter().map(|range| {
|
||||||
Anchor {
|
Anchor {
|
||||||
offset: range.start,
|
offset: range.start,
|
||||||
bias: Bias::Left,
|
bias: Bias::Right,
|
||||||
version: edit.version.clone(),
|
version: edit.version.clone(),
|
||||||
}..Anchor {
|
}..Anchor {
|
||||||
offset: range.end,
|
offset: range.end,
|
||||||
|
|
Loading…
Reference in a new issue