I can move selected text some lines up and down using ctrl+shift+up/down.
If the last line ends with text and the selection contains an empty line at the end; it disappears after I moved it beyond the last line.
I can move selected text some lines up and down using ctrl+shift+up/down.
If the last line ends with text and the selection contains an empty line at the end; it disappears after I moved it beyond the last line.
the behaviour is different. In the case of the issue the file ends with an empty line, making it impossible to swap the last and penultimate lines.
In my case the file ends with text (it ends with some more text
). While moving the text block, which ends with a new line, to the end of the file, unintentionally attempting to move one line further makes the whole text selection disappear. Basically the entire text selection is replaced by a single empty line.
create a file and add text to it:
text to move
some more text
select the entire line + linebreak: text to move\n
1 some more text
2 text to move
1 some more text
2
1