Make the anchor range inclusive on completions
This will help us to correctly interpolate the replacement range when we confirm before receiving new completions after typing with a completion open.
This commit is contained in:
@@ -1758,7 +1758,7 @@ impl Buffer {
|
||||
},
|
||||
};
|
||||
|
||||
let old_range = this.anchor_after(old_range.start)..this.anchor_before(old_range.end);
|
||||
let old_range = this.anchor_before(old_range.start)..this.anchor_after(old_range.end);
|
||||
|
||||
Some(Completion {
|
||||
old_range,
|
||||
|
||||
Reference in New Issue
Block a user