From a59e392c337672b0a84257e6a45af061be4e7a6c Mon Sep 17 00:00:00 2001 From: Alex Goltman Date: Tue, 15 Nov 2022 11:34:25 +0200 Subject: [PATCH] Expand file path's user home "~" post sublime 4142 - Fix #36 --- find_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_results.py b/find_results.py index dbf69a5..5707132 100644 --- a/find_results.py +++ b/find_results.py @@ -29,7 +29,7 @@ def get_file(self, sel): line_text = view.substr(line) match = re.match(r"(.+):$", line_text) if match: - if os.path.exists(match.group(1)): + if os.path.exists(os.path.expanduser(match.group(1))): return match.group(1) line = view.line(line.begin() - 1) return None