SublimeText / TrailingSpaces

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

Plugin keeps file open #49

Closed tschulte closed 4 years ago

tschulte commented 11 years ago

The plugin keeps the current file open, at least if the file has more than 1000 lines. This keeps the file from beeing changed on Windows platform e.g. by git checkout branch.

I think changing the method freeze_last_version to

        with codecs.open(file_name, "r", "utf-8") as f:
            on_disk = f.read().splitlines()

would solve the issue (I'm no python guy).

Another question: The method on_activated is defined twice. Is this by purpose?