Skip to content

Commit 5a09d70

Browse files
chigixmarijnh
authored andcommitted
fix: usr: typo alert when selecting variables in windows with project mode configured.
Signed-off-by: Richard Lea <[email protected]>
1 parent 54d5659 commit 5a09d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def run(self, edit, **args):
548548
shown_error = False
549549
regions = []
550550
for ref in data["refs"]:
551-
if ref["file"] != file:
551+
if ref["file"].replace('\\','/') != file.replace('\\','/'):
552552
if not shown_error:
553553
sublime.error_message("Not all uses of this variable are file-local. Selecting only local ones.")
554554
shown_error = True

0 commit comments

Comments
 (0)