Skip to content

Commit d86efd8

Browse files
committed
Fix FmCreate command
1 parent e294eb1 commit d86efd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

commands/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def run(self, abspath, input_path):
2323
return os.makedirs(abspath, exist_ok=True)
2424
if not os.path.isfile(abspath):
2525
os.makedirs(os.path.dirname(abspath), exist_ok=True)
26-
with open(abspath, "w") as fp:
26+
with open(abspath, "w"):
2727
pass
2828
template = get_template(abspath)
2929
else:
@@ -118,6 +118,6 @@ def is_enabled(self, paths=None):
118118
return paths is None or len(paths) == 1
119119

120120
def on_done(self, abspath, input_path):
121-
sublime.run_command(
121+
self.window.run_command(
122122
"fm_creater", {"abspath": abspath, "input_path": input_path}
123123
)

0 commit comments

Comments
 (0)