editor: Fix incorrect offset passed to acp completion provider (#38321)
Might fix | ZED-15G Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -3078,7 +3078,7 @@ impl ToOffset for usize {
|
||||
fn to_offset(&self, snapshot: &BufferSnapshot) -> usize {
|
||||
assert!(
|
||||
*self <= snapshot.len(),
|
||||
"offset {} is out of range, max allowed is {}",
|
||||
"offset {} is out of range, snapshot length is {}",
|
||||
self,
|
||||
snapshot.len()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user