SublimeText / TrailingSpaces

Highlight trailing spaces and delete them in a flash.
MIT License
897 stars 94 forks source link

Duplicate on_activated listener #100

Closed shardulm94 closed 4 years ago

shardulm94 commented 8 years ago

I guess it should be safe to remove the first on_activated listener.

class TrailingSpacesListener(sublime_plugin.EventListener):
    def on_modified(self, view):
        if trailing_spaces_live_matching:
            match_trailing_spaces(view)

    def on_activated(self, view):
        if trailing_spaces_live_matching:
            match_trailing_spaces(view)

    def on_selection_modified(self, view):
        if trailing_spaces_live_matching:
            match_trailing_spaces(view)

    def on_activated(self, view):
        self.freeze_last_version(view)
        if trailing_spaces_live_matching:
            match_trailing_spaces(view)
rchl commented 4 years ago

This is now fixed on master.