You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
)
Pass all selection regions to `view_find_all_in_regions` and match
trailing spaces in the so that we can exclude them all when
`trailing_spaces_include_current_line` is `false`.
Also renamed some variables for clarity and use more concise code.
Resolves#111
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.py
Note: I use TrailingSpaces for highlighting and Whitespace for trimming.
The text was updated successfully, but these errors were encountered: