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:
@@ -1536,7 +1536,7 @@ impl Buffer {
|
||||
let ranges = edit.ranges.iter().map(|range| {
|
||||
Anchor {
|
||||
offset: range.start,
|
||||
bias: Bias::Left,
|
||||
bias: Bias::Right,
|
||||
version: edit.version.clone(),
|
||||
}..Anchor {
|
||||
offset: range.end,
|
||||
|
||||
Reference in New Issue
Block a user