def _cleanup_views():
# Resets cursor and mode. In the case of errors loading the plugin this can
# help prevent the normal functioning of editor becoming unusable e.g. the
# cursor getting stuck in a block shape or the mode getting stuck in normal
# or visual mode.
for window in sublime.windows():
for view in window.views():
settings = view.settings()
settings.set('command_mode', False)
settings.set('inverse_caret_state', False)
# TODO should the "vintage" setting be erased too? i.e. v.settings().erase('vintage')
评论列表
文章目录