mirror of
https://github.com/Morantron/tmux-fingers.git
synced 2024-06-26 07:29:11 +02:00
expand_path only if the match starts with ~
This commit is contained in:
parent
c9c6d8e79b
commit
b2f7567d0a
|
@ -124,7 +124,7 @@ module Fingers
|
||||||
|
|
||||||
# This takes care of some path expansion weirdness when opening paths that start with ~ in MacOS
|
# This takes care of some path expansion weirdness when opening paths that start with ~ in MacOS
|
||||||
def expanded_match
|
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)
|
Path[match].expand(base: original_pane.pane_current_path, home: Path.home)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user