Commit fc579936 authored by hluk's avatar hluk Committed by hjk
Browse files

FakeVim: Select matched text when searching backwards



Task-number: QTCREATORBUG-7251
Change-Id: I3ef998683080b92e9e4a301434e45dc56c5a2f0a
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent eaf75253
......@@ -582,6 +582,7 @@ static void searchBackward(QTextCursor *tc, QRegExp &needleExp, int *repeat)
++*repeat;
}
tc->setPosition(block.position() + i);
tc->setPosition(tc->position() + needleExp.matchedLength(), KeepAnchor);
}
// Commands [[, []
......
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