Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3563 Left arrow with selection at start of buffer

closed-fixed
5
2011-08-25
2011-08-23
Slava Pestov
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

  • 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.

     
    • 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.

     
  • 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.

     
    • status: open --> closed-fixed
     
  • fixed in rev 19384