Summary: | [Regression] Selected text is not pasted in search field when search is initiated | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Martin Kostolný <clearmartin> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | c16b7d71, colin, florian.brandner, houz, kde2, simonandric5, subdiff, TedFedora, toddrme2178, vascom2 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
URL: | https://git.reviewboard.kde.org/r/128859/ | ||
Latest Commit: | http://commits.kde.org/ktexteditor/2c4feeb0c9107732399f8ae3dacea3124572f345 | Version Fixed In: | KDE Frameworks 5.27 |
Sentry Crash Report: |
Description
Martin Kostolný
2016-09-20 08:12:45 UTC
*** 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. *** |