def on_post_save(self, view): if view.settings().get('vintageous_modeline', False): do_modeline(view) # Ensure the carets are within valid bounds. For instance, this is a # concern when 'trim_trailing_white_space_on_save' is set to true. view.run_command('_nv_fix_st_eol_caret', {'mode': State(view).mode})
def on_post_save(self, view): if get_option(view, 'modeline'): do_modeline(view) # Ensure the carets are within valid bounds. For instance, this is a # concern when 'trim_trailing_white_space_on_save' is set to true. # TODO Kill State dependency fix_eol_cursor(view, State(view).mode)
def on_post_save(self, view): if view.settings().get('vintageous_modeline', False): do_modeline(view) # Ensure the carets are within valid bounds. For instance, this is a # concern when 'trim_trailing_white_space_on_save' is set to true. # TODO Kill State dependency fix_eol_cursor(view, State(view).mode)
def on_load(self, view): if get_option(view, 'modeline'): do_modeline(view)
def on_load(self, view): if view.settings().get('vintageous_modeline', False): do_modeline(view)
def on_load(self, view): if is_view(view) and get_option(view, 'modeline'): do_modeline(view)