Skip to content

Commit c4dcae7

Browse files
committed
Focus the opened file view always.
1 parent 9066872 commit c4dcae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

advanced_new_file/commands/new_file_command.py

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def on_load(self, view):
246246
else:
247247
view.run_command("insert_snippet", {"contents": template})
248248
view.settings().set("_anf_new", "")
249+
sublime.active_window().focus_view(view)
249250

250251
def get_basename(self, path):
251252
return os.path.basename(os.path.expanduser(path))

0 commit comments

Comments
 (0)