mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:34:53 +03:00
move visible text to just start anchor with context lines for semantic search
This commit is contained in:
parent
cdceddd2cc
commit
e8210b827d
@ -217,7 +217,7 @@ impl ProjectSearch {
|
||||
|
||||
let matches = results
|
||||
.into_iter()
|
||||
.map(|result| (result.buffer, vec![result.range]))
|
||||
.map(|result| (result.buffer, vec![result.range.start..result.range.start]))
|
||||
.collect();
|
||||
|
||||
excerpts.stream_excerpts_with_context_lines(matches, 3, cx)
|
||||
|
Loading…
Reference in New Issue
Block a user