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

            Bug ID: 376934
           Summary: Kate (apparently) does not account for code folder
                    when searching with '/' in vi-mode
           Product: kate
           Version: 15.12
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Vi Input Mode
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: erik.b.andersen+kdeb...@gmail.com
  Target Milestone: ---

It appears that Kate doesn't account for code folding when searching in
vi-mode.

Testcase:

create a document with a foldable section. Inside of that foldable section, put
a unique string. Place another copy of the same unique string before the
foldable code. Put a few more lines then in the foldable section after the
foldable section.

Fold the foldable code section.

Place your cursor before the first copy of the unique string.

Press '/' and type the unique string followed by a newline.

(You should have jumped to the first (non-folded) instance of the string while
you were typing the unique string into the search bar, and should still be on
it after pressing enter.)

Press 'n' to go to the next result.

You should jump to after the foldable section. I notice that the number of
lines past the foldable section you jump is equal to the number of lines
(starting from the start of the foldable section) into the foldable section the
result is.

Bug 282323 might be the same thing, but I can't seem to figure out how to
change the status (maybe I don't have permission?)

This is on Ubuntu 16.04 Trusty using the Ubuntu packages.

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

Reply via email to