forked from qt-creator/qt-creator
FakeVim: Fix invalid cursor position warnings
Change-Id: If09f2cfeb58e9810ec3858c0a20d2f5e0a7fac14 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -3284,7 +3284,7 @@ void FakeVimHandler::Private::fixSelection()
|
||||
if (g.movetype == MoveInclusive) {
|
||||
// If position or anchor is after end of non-empty line, include line break in selection.
|
||||
if (characterAtCursor() == ParagraphSeparator) {
|
||||
if (!atEmptyLine()) {
|
||||
if (!atEmptyLine() && !atDocumentEnd()) {
|
||||
setPosition(position() + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user