Since KF 5.26 when I want to search (Ctrl+F) in text editor, I have to copy the selected text, press Ctrl+F and paste the copied text in order to search for it in document. Reproducible: Always Steps to Reproduce: 1. Open a text document in any KDE text editor (e.g. Kate) 2. Select a portion of text and press Ctrl+F 3. Select another portion of text and press Ctrl+F Actual Results: Search field is filled by the first portion of text. Expected Results: Search field should be filled by the lastly selected portion of text. Downgrading to ktexteditor 5.25 fixes this issue.
*** Bug 369149 has been marked as a duplicate of this bug. ***
Also happens on Gentoo. Downgrading also fixes the problem for me.
Some additional observations: - the selection is correctly copied into the text field on the first search - the selection is correctly copied into the text field when alternating between different modes of the search bar (e.g., CTRL-F then CTRL-R then again CTRL-F). The problem appears to be in the method KateNormalInputMode::searchBar. On the first search, the selection is copied into the text field within the constructor of KateSearchBar, which actually invokes KateSearchBar::enterIncrementalMode. On subsequent searches, the constructor is not called anymore. Consequently, KateSearchBar::enterIncrementalMode is not invoked unless the mode variable switches between the "power" and "incremental" search modes. Calling KateSearchBar::enterIncrementalMode within GDB at this moment fixes the problem. So, an obvious fix might be to always invoke KateSearchBar::enterIncrementalMode/ KateSearchBar::enterPowerMode independent from mode changes?
I thought this was fixed with KF 5.27, or is it not fixed ?
*** Bug 369883 has been marked as a duplicate of this bug. ***
I cannot replicate it in KF 5.27 -> closing. Thanks for fixing this! :-)
*** Bug 371498 has been marked as a duplicate of this bug. ***