From 2002e0a4b0ae5408ea0ba9ff63243fb45940d1ca Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Wed, 12 Dec 2012 23:39:53 +0100 Subject: [PATCH] Do not ignore spaces on backwards search This ports a change we made to the forward search 4 years ago... 7183c172c22933387359edee33755dc6b7b0af26 for more reference BUGS: 311232 FIXED-IN: 4.9.5 --- core/textpage.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/textpage.cpp b/core/textpage.cpp index a983844ed..7f1225663 100644 --- a/core/textpage.cpp +++ b/core/textpage.cpp @@ -981,16 +981,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const { offsetMoved = true; } - if ( query.at(j).isSpace() ) - { - // lets match newline as a space -#ifdef DEBUG_TEXTPAGE - kDebug(OkularDebug) << "newline or space"; -#endif - j--; - queryLeft--; - } - else { len = stringLengthAdaptedWithHyphen(str, it, m_words.constEnd(), m_page); int min=qMin(queryLeft,len);