From 18dfab430cf257be3aaa67462e3bf9caaeef187d Mon Sep 17 00:00:00 2001 From: Petr Marek Date: Thu, 10 Nov 2022 07:22:00 +0100 Subject: [PATCH] Update for Sublime Text build 4142 Build 4142 started using `~` in file name rows. These need to be expanded for the command to work. --- 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