def _view(self):
"""Return the view that should receive any actions."""
view = None
try:
view = self.view
except AttributeError:
try:
view = self.window.active_view()
except AttributeError:
raise AttributeError(
'ViCommandMixin must be used with a TextCommand or a WindowCommand class')
return view
评论列表
文章目录