C14.13: a search hit puts the caret on the match, not the line start
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
584e08d8ad
commit
10b9e7b694
8 files changed
+121
-24
No files matched your search
@@ -256,7 +256,7 @@ impl Side {
|
||||
};
|
||||
// The heading in view, the caret on it.
|
||||
let line = heading.line;
|
||||
view.update(cx, |view, cx| view.reveal(line, window, cx));
|
||||
view.update(cx, |view, cx| view.reveal((line, 0), window, cx));
|
||||
});
|
||||
ScrollArea::new("mark-outline-scroll")
|
||||
.vertical()
|
||||
@@ -317,9 +317,9 @@ impl Side {
|
||||
return;
|
||||
};
|
||||
// Hits count lines from one.
|
||||
let (tab, file, line) = (*tab, hit.file.clone(), hit.line - 1);
|
||||
let (tab, file, at) = (*tab, hit.file.clone(), (hit.line - 1, hit.column));
|
||||
opener
|
||||
.update(cx, |desk, cx| desk.open_at(tab, file, line, window, cx))
|
||||
.update(cx, |desk, cx| desk.open_at(tab, file, at, window, cx))
|
||||
.ok();
|
||||
});
|
||||
let more = (self.hits.len() == MOST_HITS)
|
||||
|
||||
Reference in new issue
Block a user