Bias the start of an autoindent request towards the right for new text

Antonio Scandurra created

When a newline is inserted, this prevents the request from including
the line on which the newline got inserted.

Change summary

crates/buffer/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/buffer/src/lib.rs 🔗

@@ -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,