move visible text to just start anchor with context lines for semantic search

This commit is contained in:
KCaverly 2023-07-25 15:24:27 -04:00
parent cdceddd2cc
commit e8210b827d

View File

@ -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)