mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Buffer::nextWord(): simplify a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28964 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1ec0b390f5
commit
966ea2752e
@ -3067,13 +3067,10 @@ bool Buffer::nextWord(DocIterator & from, DocIterator & to,
|
||||
ignoreword = true;
|
||||
}
|
||||
} else { // !isLetter(cur)
|
||||
if (inword)
|
||||
if (!word.empty() && !ignoreword) {
|
||||
return true;
|
||||
}
|
||||
inword = false;
|
||||
if (inword && !word.empty() && !ignoreword)
|
||||
return true;
|
||||
inword = false;
|
||||
}
|
||||
|
||||
to.forwardPos();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user