Skip to content

Commit

Permalink
picker(global-search): append line number to found options
Browse files Browse the repository at this point in the history
  • Loading branch information
woojiq committed Apr 1, 2024
1 parent 88d455a commit ef13bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2226,6 +2226,7 @@ fn global_search(cx: &mut Context) {
let relative_path = helix_stdx::path::get_relative_path(&self.path)
.to_string_lossy()
.into_owned();
let relative_path = format!("{}:{}", relative_path, self.line_num + 1);
if current_path
.as_ref()
.map(|p| p == &self.path)
Expand Down

0 comments on commit ef13bf5

Please sign in to comment.