def run(self, command_line=''):
assert command_line, 'expected non-empty command line'
parsed = parse_command_line(command_line)
# TODO: implement this
if parsed.command.forced:
show_not_implemented()
return
if self._view.is_read_only():
sublime.status_message("Can't write a read-only buffer.")
return
if not self._view.file_name():
sublime.status_message("Can't save a file without name.")
return
self.window.run_command('save')
self.window.run_command('ex_quit', {'command_line': 'quit'})
评论列表
文章目录