SublimeText / TrailingSpaces

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

"file_max_size" not taken into account? #89

Closed VipSaran closed 4 years ago

VipSaran commented 9 years ago

In ST2 (64bit on Win 7), the default for trailing_spaces_file_max_size is 1048576, but when opening 50MB file, I get this error:

trailing

Expected behavior would be that plugin first checks for file size and, if it exceeds the supported max, it "shuts itself off" (effectively doing trailing_spaces_enabled=false).

fritz-c commented 9 years ago

Did you register the setting in your generic Preferences.sublime_settings file, or the package-specific trailing_spaces.sublime_settings file? I think the setting needs to be in the latter.

rchl commented 4 years ago

Tested on v1.3.2 and WFM (got my debug message printed that file was ignored). It wouldn't cause the message currently anyway as everything runs async.