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

            Bug ID: 473116
           Summary: Find Next searches in other split
    Classification: Applications
           Product: kate
           Version: 23.04.3
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: search
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: groszdaniel...@gmail.com
  Target Milestone: ---

SUMMARY
When using a split view (say, a vertical split into a left and right view),
under particular conditions, the Find Next button continues a search in the
inactive view, rather than the intended one.

STEPS TO REPRODUCE
1. Create a vertical split (left and right half).
2. Click in the left half. (The other way around, starting in the right half,
doesn't reproduce the bug.)
3. Start either a simple Find (Ctrl+F) or a Replace (Ctrl+R).
4. Either enter some text, or clear the Find field.
5. Leave the search open, or close it with the X button or, only if you cleared
the Find field in 4., close it with Escape. (If I enter some text and close it
with Escape, the bug doesn't reproduce.)
6. Click in the right half. (Switching with a Next Split View shortcut doesn't
reproduce the bug.)
7. Start a simple Find (Ctrl+F). (Using Replace doesn't reproduce it.)
8. Enter some characters. It starts to search in the file in the right split
view.
9. Press F3 (Find Next). Optionally repeat it.
10. Click in the left split view.

OBSERVED RESULT
In 9., each press of F3 continues the search in the left split view (or does
nothing if the Find field in the left split view is empty), rather than the
search in the right split view.

After 10., the Find box corresponding to the right-side view remains visible.

EXPECTED RESULT
In 9., the search on the right split view is continued.

In 10., it switches back to the left split view's Find or Replace box (or hides
any Find or Replace box, if it was closed in the left-side view).

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230806
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.3-1-default (64-bit)
Graphics Platform: X11

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

Reply via email to