Commit 868dac80 authored by mae's avatar mae
Browse files

Fixed moving lines up/down through folded code

Previously this resulted in the folded code being removed.

Task-number: QTCREATORBUG-768
parent b282d27f
......@@ -920,6 +920,9 @@ void BaseTextEditor::moveLineUpDown(bool up)
{
QTextCursor cursor = textCursor();
QTextCursor move = cursor;
move.setVisualNavigation(false); // this opens collapsed items instead of destroying them
if (d->m_moveLineUndoHack)
move.joinPreviousEditBlock();
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment