Fix toggling deletion hunk with mouse at start of buffer (#25726)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
@@ -2417,7 +2417,7 @@ impl MultiBuffer {
|
||||
let snapshot = self.read(cx);
|
||||
let mut cursor = snapshot.diff_transforms.cursor::<usize>(&());
|
||||
let offset_range = range.to_offset(&snapshot);
|
||||
cursor.seek(&offset_range.start, Bias::Right, &());
|
||||
cursor.seek(&offset_range.start, Bias::Left, &());
|
||||
while let Some(item) = cursor.item() {
|
||||
if *cursor.start() >= offset_range.end && *cursor.start() > offset_range.start {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user