https://bugs.kde.org/show_bug.cgi?id=369104

--- Comment #3 from Brandner <florian.brand...@telecom-paristech.fr> ---
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?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to