From f4f5178d4f00e330635f0e06b4f4cc1818c1100c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 21 Jun 2009 14:33:13 +0000 Subject: [PATCH] Revert previous to this file, stupid copy&paste bug fix, sorry. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30212 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index b207258041..dfa72ab49f 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; -- 2.39.5