howl icon indicating copy to clipboard operation
howl copied to clipboard

Selecting multiple lines behaves in unexpected way for last line

Open italomaia-bk opened this issue 6 years ago • 5 comments

If you highlight a line and your cursor is in the last position of the line, and you hold shift, and press down, the cursor position might be kept as the last character in the line or it might not.

I'm unsure about the logic behind it, but seems unexpected to me.

italomaia-bk avatar Nov 19 '18 16:11 italomaia-bk

I believe it will always go to the same position on each line. If you go to a shorter line, it can't go to the same position so it will go to the end of the line, but the original position is preserved as long as the selection is active.

If you can describe some steps to reproduce unexpected behavior, that would be great!

shalabhc avatar Nov 22 '18 19:11 shalabhc

Made a video showing the issue https://youtu.be/fPGXzFdZY9w

italomaia avatar Nov 23 '18 18:11 italomaia

Well, let me know if more info is needed.

italomaia-bk avatar Nov 29 '18 03:11 italomaia-bk

Confirmed?

italomaia avatar Jan 04 '19 18:01 italomaia

Yup.

Steps to repro:

  1. In a new buffer write
abc
def
g
  1. Position cursor between a and b
  2. Press shift_down two times Expected: g is selected Seen: g is not selected, cursor is before g.

shalabhc avatar Mar 13 '19 18:03 shalabhc