Skip to content

Commit

Permalink
Focus group before opening new scratch buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ninth-dev committed Aug 26, 2022
1 parent b503072 commit 705e710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/core/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,8 @@ def _open_uri_with_plugin_async(
result = Promise.packaged_task() # type: PackagedTask[Optional[sublime.View]]

def open_scratch_buffer(title: str, content: str, syntax: str) -> None:
if group > -1:
self.window.focus_group(group)
v = self.window.new_file(syntax=syntax, flags=flags)
# Note: the __init__ of ViewEventListeners is invoked in the next UI frame, so we can fill in the
# settings object here at our leisure.
Expand Down

0 comments on commit 705e710

Please sign in to comment.