Skip to content
Snippets Groups Projects
Commit 73c4e24a authored by Jakub Vrána's avatar Jakub Vrána Committed by Marijn Haverbeke
Browse files

[sublime bindings] Don't sort last line with no selected chars

Selecting two full lines including line ends makes a selection from
line 1 to line 3 (ch: 0). This command used to sort three lines (1 to
3) which is not what I expect. This change makes it sort only two
lines if there are no selected characters on the last line.

It also fixes a fatal error if there are more than one selection on
the same line (the code used 'range' instead of 'ranges').

It also selects the trailing newline after sorting the lines so that
the whole lines are selected.
parent 6709974d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment