We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbeaa30 commit 8b1cc55Copy full SHA for 8b1cc55
gscommon.py
@@ -82,10 +82,14 @@ def notice(domain, txt):
82
def is_go_source_view(view):
83
return view.score_selector(view.sel()[0].begin(), 'source.go') > 0
84
85
-def active_valid_go_view():
86
- win = sublime.active_window()
+def active_valid_go_view(win=None):
+ if not win:
87
+ win = sublime.active_window()
88
if win:
89
view = win.active_view()
90
if view and view.file_name() and is_go_source_view(view):
91
return view
- return None
92
+ return None
93
+
94
+def rowcol(view):
95
+ return view.rowcol(view.sel()[0].begin())
0 commit comments