Bug 368130

Summary: Vi-mode search box disappears if used again while the search box is still open
Product: [Applications] kate Reporter: Simon Yuan <siyuan.nz>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: jpmbatrina01, loh.tar
Priority: NOR    
Version: 17.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Simon Yuan 2016-09-02 02:11:22 UTC
In Vi-mode, if you search by, say using the shortcut ctrl + f, while the search box is open, pressing ctrl + f again while the search box is still opened causes the search box to disappear. Once the editor goes into this state, you can never get the search box back until you reopen the editor.

I selected Version=16.04.1, but I'm actually using 16.08.

Reproducible: Always

Steps to Reproduce:
1. Search by using the menu or ctrl + f.
2. Search again without closing the search box by repeating step 1 once.
3. Any further attempts to search fails to bring up the search box.

Actual Results:  
You can never get the search box back once you trigger the bug.
Comment 1 Lothar 2019-03-13 19:38:29 UTC
Here is some patch offer, but cant' say if it's sufficient or make things event worse
https://phabricator.kde.org/D19408
Comment 2 Jan Paul Batrina 2020-11-02 15:17:21 UTC
I have started a merge request that fixes this bug https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/40/

For now, a workaround to make the search bar show again is to try opening the command bar twice (by pressing ":" twice), then pressing Ctrl+F or "/".
Comment 3 Jan Paul Batrina 2020-11-02 17:24:04 UTC
> https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/40/

The MR has just been merged. Hopefully it solves the problem for all cases and do not introduce new bugs.