Unable to move last line with shortcuts if it is empty
Environment: Reproduced in mousepad 0.5.1git-110221c
(shown on about screen) compiled locally
Steps to reproduce
- open mousepad
- fill some lines than can be told apart
- add one empty line at the end
Expected behavior
Pressing Alt+Up/Down
moves the current line.
Observed behavior
If the last line is empty and the cursor is placed there, pressing Alt+Up
will move the cursor up one line without affecting the document.
If the cursor is placed in a line that contains text and is right above the empty last line, pressing Alt+Down
does not trigger any reaction.
Empty lines can be moved or passed while moving other lines anywhere else in the document.
I can imagine that this is probably some annoying edge case that requires extra logic to specifically treat this situation. I think it would be perfectly fine to leave this as is, just thought i would report it as unexpected behavior.