Esempio n. 1
0
    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})
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
 def on_load(self, view):
     if get_option(view, 'modeline'):
         do_modeline(view)
Esempio n. 5
0
 def on_load(self, view):
     if view.settings().get('vintageous_modeline', False):
         do_modeline(view)
Esempio n. 6
0
 def on_load(self, view):
     if is_view(view) and get_option(view, 'modeline'):
         do_modeline(view)