Show correct line number for entry placeholders in /search (#13151)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-06-17 18:19:44 +02:00 committed by GitHub
parent d6d56191da
commit d95c424d18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,7 @@ impl SlashCommand for SearchSlashCommand {
id,
path: Some(full_path.clone()),
is_directory: false,
line_range: Some(start_row..end_row),
line_range: Some(start_row + 1..end_row + 1),
unfold,
}
.into_any_element()