Skip to content

Commit b1302ca

Browse files
committed
Translate locations in Scopes pane to authored source, if necessary
1 parent d4ff020 commit b1302ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

swi.py

+7
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,13 @@ def run(self, edit):
10681068
v.erase(edit, sublime.Region(0, v.size()))
10691069

10701070
if file and line:
1071+
position = get_authored_position_if_necessary(file, int(line), 0)
1072+
if position:
1073+
file = position.file_name()
1074+
line = position.one_based_line()
1075+
1076+
file = file.split('/')[-1]
1077+
10711078
callback = lambda: open_script_and_focus_line_by_filename(file, line)
10721079
v.print_click(edit, v.size(), "%s:%s" % (file, line), callback)
10731080

0 commit comments

Comments
 (0)