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