Summary: | KTextEdit: 'Start of Line' regular expression search fails | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Sabine Faure <sabine> |
Component: | kdeui | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | faure, kdepim-bugs, mcguire, montel, voker57 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sabine Faure
2010-05-11 22:08:56 UTC
The same thing happens with the 'end of line' functionality: - Launch Kmail - Click on 'New' button - In the text editor, type: *test *testing *hello test *test (without going to the next line afterward) - Go to Edit menu/Find... - A 'Find Text' dialogue opens. In it check the Regular expression' check box, click on the 'Edit...' button and select 'End of Line' from the combo box - a '$' is displayed in the 'Text to find:' line edit - Before it add 'test' - Click on the 'Find' button - The last line is found and highlighted - Press F3 to search for other matches - A pop up message appears saying: '1 match found.' Whatever you do only that match is shown whereas they are other matches according to the list. Trunk, Svn Rev 1125510 I don't think that it's a specific kmail bug. But a kdelibs/.../kfind.cpp bug. (But we didn't test it before I think :) ) Yes, I can confirm the bug here, with ktextedittest from kdelibs. So moving the bug to kdelibs. SVN commit 1128196 by dfaure: Fix "start of line" (^) and "end of line" ($) regular expressions when the whole text is fed to KFind rather than line by line. This is basically hitting a documented limitation of QRegExp (no support for the equivalent of perl's /m) and splitting the text into lines in the case where the regexp starts with ^ or ends with $. BUG: 237296 Fixed-In: 4.5 M +57 -4 findreplace/kfind.cpp M +7 -3 tests/kfindtest.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1128196 *** Bug 205485 has been marked as a duplicate of this bug. *** Cannot test because I am using 4.4 branch kdelibs instead of trunk there. I'll try retesting this later if trunk is stable enough. Trunk, Svn Rev 1128989 |