When highlighting trailing spaces, they are ignored on the current line as expected, but when using multi-caret / multiple selection, trailing spaces on lines beyond the first one (from top to bottom, not by selection order) are still highlighted.
The error comes from trailing_spaces.py, in find_trailing_spaces:
sel = view.sel()[0]
only refers to the top-most selection. I think we should iterate on all selected regions instead, as Whitespace does in https://github.com/randy3k/Whitespace/blob/master/Whitespace.py
Note: I use TrailingSpaces for highlighting and Whitespace for trimming.
When highlighting trailing spaces, they are ignored on the current line as expected, but when using multi-caret / multiple selection, trailing spaces on lines beyond the first one (from top to bottom, not by selection order) are still highlighted.
The error comes from
trailing_spaces.py
, infind_trailing_spaces
:sel = view.sel()[0]
only refers to the top-most selection. I think we should iterate on all selected regions instead, as Whitespace does in https://github.com/randy3k/Whitespace/blob/master/Whitespace.pyNote: I use TrailingSpaces for highlighting and Whitespace for trimming.