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