| Summary: | Replace All feature not works in block mode | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Alain Laporte <alain> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | alain, kde.remi, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 21.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/5c6f373e307d981935ddd14a27addec8aca29bc9 | Version Fixed/Implemented In: | 5.113 |
| Sentry Crash Report: | |||
|
Description
Alain Laporte
2022-07-05 20:40:15 UTC
This is unlikely to change. If someone wants to a replace only in a particular part of the document, they can select that part and do replace. Best we can do is to show a warning that replace will not work or disable the UI. I can reproduce this bug. It happens when all these conditions are met : - block selection mode is checked - option "search in the selection only" is not checked - some text is selected In this case it should find/replace all occurrences in the whole document but it finds "0 occurrences". Following actions are affected : - find all - replace all It works correctly if selection mode is normal (no block mode) It works correctly if option "search in the selection only" is checked It works correctly selection is empty Note : "search in the selection only" is automatically checked when a text is selected, it must be explicitly unchecked to reproduce this bug. I'm trying to add an autotest to reproduce this bug. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/631 Git commit 5c6f373e307d981935ddd14a27addec8aca29bc9 by Christoph Cullmann, on behalf of Rémi Peuchot. Committed on 08/11/2023 at 19:48. Pushed by cullmann into branch 'master'. KateSearchBar: ignore block mode if selectionOnly option is disabled FIXED-IN:5.113 M +2 -1 src/search/katesearchbar.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/5c6f373e307d981935ddd14a27addec8aca29bc9 |