#9621
Ivan
Participant

Bug with highlighted text when sorting a selection

Steps to reproduce:
1. Type some lines of text.

one
two
three
four
five

Note: Do NOT press ENTER after the last line!

2. Press CTRL+A to select all the lines.
3. Right-click the selection and choose Separated Values/Sort -> Sort A to Z.

Now, the lines are sorted from A to Z:

five
four
one
three
two

But, the I beam cursor is positioned at the beginning of the very first line and when clicking the selection, only the first line is deselected and the other lines remain selected (even though they are not).

However, if you press ENTER after the last line in step 1, it works correctly.