Summary: | bug in block selection mode and replacement in Kate | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Alessandro Ghersi <alessandro-ghersi> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.matveyakin, lbleicher |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.11 | |
Sentry Crash Report: |
Description
Alessandro Ghersi
2010-10-04 02:17:31 UTC
@Andrey: is this still an issue with your recent patches? Dominik, looks like the bug was fixed long before my patches. Still I think it would be better to add something like this to searchbar_test // Make sure Kate doesn't replace anything outside selection in block mode (see bug 253191) void SearchBarTest::testReplaceInBlockMode() { KateDocument doc(false, false, false); KateView view(&doc, 0); KateViewConfig config(&view); doc.setText("111\n111"); view.setBlockSelection(true); view.setSelection(KTextEditor::Range(0, 1, 1, 2)); KateSearchBar bar(true, &view, &config); bar.setSearchPattern("1"); bar.setReplacementPattern("2"); bar.replaceAll(); QCOMPARE(doc.text(), QString("121\n121")); } Shall I commit this test? Yes: Having this test is a very good idea in my opinion. Thanks for the work! Can you close the bug when committing the unit test? It turned out I can't since I don't have permit to close bugs. The http://community.kde.org/Sysadmin/GitKdeOrgManual manual says I should request for bug edit permission through this link: https://bugs.kde.org/enter_sysadmin_request.cgi but when I click it I only see “Sorry, entering a bug into the product sysadmin has been disabled.” Looks like a bug in KDE bug tracker manual :-) You can edit bugs now ;) PS: sysadmin requests now go to http://sysadmin.kde.org/tickets/ Thank you, Dominik! Btw, looks like https://bugs.kde.org/page.cgi?id=fields.html#status page is also outdated. While it describes UNCONFIRMED CONFIRMED IN_PROGRESS RESOLVED VERIFIED statuses, I actually see UNCONFIRMED CONFIRMED ASSIGNED RESOLVED NEEDSINFO and after I select “RESOLVED”, 13 various resolutions appear in the second combobox, bug only 5 of them are documented. Where should bugs in KDE info pages be filed? Again sysadmins I guess. I just found out that this bug seems to be still around - I have a machine running CentOS 6.5, KDE 4.3.4 and I have the same problem if I use Kate or Kwrite. |