From 3010d0d80f6c50fc3aff36dfcfcaf0af834c2f90 Mon Sep 17 00:00:00 2001 From: Lucas Tolchinsky Date: Tue, 11 Aug 2026 10:45:47 -0300 Subject: [PATCH] fix: open Helix at the selected line --- src/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.rs b/src/editor.rs index 3ab78a74..1ab7c023 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -213,7 +213,7 @@ fn editor_family(program: &str) -> EditorFamily { .and_then(|name| name.to_str()) .unwrap_or(program); match name { - "vi" | "vim" | "nvim" | "nano" | "emacs" | "emacsclient" => EditorFamily::PlusLine, + "vi" | "vim" | "nvim" | "nano" | "emacs" | "emacsclient" | "hx" => EditorFamily::PlusLine, "code" | "code-insiders" | "codium" | "cursor" => EditorFamily::GotoLine, _ => EditorFamily::Plain, } @@ -274,7 +274,7 @@ mod tests { #[test] fn plus_line_editors_receive_line_before_path() { - for editor in ["vi", "vim", "nvim", "nano"] { + for editor in ["vi", "vim", "nvim", "nano", "hx"] { let command = EditorCommand::from_editor(editor, &target(Some(42))); assert_eq!(command.program, editor); assert_eq!(args(&command), vec!["+42", "/repo/src/main.rs"]);