From b2f7567d0a90612ed956e7891fb2cf22333b9e7d Mon Sep 17 00:00:00 2001 From: Brett Bender Date: Fri, 20 Oct 2023 10:10:01 -0700 Subject: [PATCH] expand_path only if the match starts with ~ --- src/fingers/action_runner.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fingers/action_runner.cr b/src/fingers/action_runner.cr index 35de505..4c3cae1 100644 --- a/src/fingers/action_runner.cr +++ b/src/fingers/action_runner.cr @@ -124,7 +124,7 @@ module Fingers # This takes care of some path expansion weirdness when opening paths that start with ~ in MacOS def expanded_match - return match unless action == ":open:" + return match unless action == ":open:" && match.starts_with?("~") Path[match].expand(base: original_pane.pane_current_path, home: Path.home) end