#3563 Left arrow with selection at start of buffer

closed-fixed
5
2011-08-25
2011-08-23
No

If text is selected and you press the left arrow, the text is deselected and the caret is now positioned at the beginning of the (former) selection.

However, this doesn't work at the beginning of the buffer.

Normally at the beginning of the buffer, you can't move left. But in this case, the caret doesn't move left, it's moved to selection start. So this should work.

Discussion

  • Anonymous - 2011-08-23

    Can you explain a little more? It seems to work fine for me: If I selecting some text at the beginning of the buffer and press the left arrow, the text is deselected and the caret is positioned at the beginning of the buffer.

     
  • Anonymous - 2011-08-23
    • status: open --> pending
     
  • Slava Pestov

    Slava Pestov - 2011-08-23
    • status: pending --> open
     
  • Slava Pestov

    Slava Pestov - 2011-08-23

    Select the text so that the caret is at 0 and the mark is at another position. Then press left arrow. Just tested in 4.4.1, same problem.

     
  • Anonymous - 2011-08-23

    I don't understand. How can you select text in another place and then move the caret to the beginning of the buffer without deselecting?

     
  • Bosse Iseborn

    Bosse Iseborn - 2011-08-23

    What he means is to select from right to left or down to up so that you end up with the caret at position 0.

     
  • Slava Pestov

    Slava Pestov - 2011-08-23

    Shmoly: create a file with some text in it. Position the cursor anywhere in the buffer except for position 0. Then press Control-Shift-Home. Now you have a selection that begins in the middle of the buffer and ends at position 0. Now press the left arrow. It won't do anything. Expected behavior: arrow is now at the start of the buffer.

     
  • Matthieu Casanova

    • status: open --> closed-fixed
     
  • Matthieu Casanova

    fixed in rev 19384

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks