From d95c424d18dd50ce96626698916fb7bf99b92593 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 17 Jun 2024 18:19:44 +0200 Subject: [PATCH] Show correct line number for entry placeholders in `/search` (#13151) Release Notes: - N/A --- crates/assistant/src/slash_command/search_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant/src/slash_command/search_command.rs b/crates/assistant/src/slash_command/search_command.rs index d0c2deeb2300482eaa2bfef2cea2f8a24b56f71a..dcbcdd66923d111adf8f72208fbc4079dd934647 100644 --- a/crates/assistant/src/slash_command/search_command.rs +++ b/crates/assistant/src/slash_command/search_command.rs @@ -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()