mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
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:
parent
1d1f8df180
commit
fde03b1b37
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue