Bug 463440 - find/replace tool does not find all occurrencies of a multiline string
Summary: find/replace tool does not find all occurrencies of a multiline string
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: search (other bugs)
Version First Reported In: 22.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-24 18:15 UTC by Germano Massullo
Modified: 2025-06-12 18:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
sample file (3.55 KB, text/plain)
2022-12-24 18:15 UTC, Germano Massullo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2022-12-24 18:15:57 UTC
Created attachment 154811 [details]
sample file

SUMMARY
find/replace tool does not find all occurrencies of a multiline string. To be able to do that you have first to click on the body of the textfile, then click again on "find all".
More infos below


STEPS TO REPRODUCE
1. Open attached file test.txt
2. copy lines from number 2 to 20 included
3. go to "Edit-> Replace"
4. in the toolbar of Replace, paste the text you copied in step 2, into the "find" box
5. click on "Find All" button. You will see that only 1 occurrency has been found, instead of 2 that should have been expected
6. click once on the body of the text in Kate main window
7. click again on "Find All" button of the Find/Replace toolbar. You will see that now the 2 occurrencies have been detected


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 37 KDE
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Comment 1 aristsakas 2025-06-12 18:51:41 UTC
I can also confirm this bug with the given attachment in Fedora 42 Kate 24.12 i also tested 25.04.