]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Revert previous to this file, stupid copy&paste bug fix, sorry.
[features.git] / src / Buffer.cpp
index b207258041a721558c0da85752fb4d32d5213c06..dfa72ab49f8f3637b8a688dc3f23b1dea6339209 100644 (file)
@@ -3379,12 +3379,12 @@ bool Buffer::nextWord(DocIterator & from, DocIterator & to,
        string lang_code;
        // Go backward a bit if needed in order to return the word currently
        // pointed by 'from'.
-       while (from && from.pos() && !isWordSeparator(from))
+       while (from && from.pos() && !isLetter(from))
                from.backwardPos();
        // OK, we start from here.
        to = from;
        while (to.depth()) {
-               if (!isWordSeparator(to)) {
+               if (isLetter(to)) {
                        if (!inword) {
                                inword = true;
                                ignoreword = false;
@@ -3401,7 +3401,7 @@ bool Buffer::nextWord(DocIterator & from, DocIterator & to,
                                if (isDigit(c))
                                        ignoreword = true;
                        }
-               } else { // !isWordSeparator(cur)
+               } else { // !isLetter(cur)
                        if (inword && !word.empty() && !ignoreword)
                                return true;
                        inword = false;