Skip to content

Incorrect search result #17312

@tahzibijafar

Description

@tahzibijafar

Steps to reproduce

1- I set igonorecase and smartcase and I set shortmess=ilnxtToO (I omitted S)

and I search /main in the following line

MainmainmainmmmainmAin

It works Ok and it I press n until 5th occurance (now the cursor is under m of mAin)

now I search as /mAin
now it shows [5/5] and it not correct.

Thank you

Expected behaviour

I expect It shows [1/1]

Version of Vim

9.1

Environment

Linux

Logs and stack traces

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions