Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

[searchcursor] wrong match when searching backwards #6056

Closed

Description

@mtaran-google
  1. open https://codemirror.net/demo/search.html
  2. paste in the content
abcdb
abcd
abcdb
abcd
  1. in the console, run:
cur = editor.getSearchCursor(/[^b]$/, {line: 4, ch: 0})
cur.findPrevious()
cur.findPrevious()
cur.findPrevious()

expected:
cur.pos corresponds to one of the last characters of a line

actual:
cur.pos corresponds to a c character, which is not the last in a line

Activity

  1. added a commit that references this issue on Jan 6, 2020
    1b1f07c
  2. added a commit that references this issue on Jan 21, 2020
    2e3f6d4
  3. added a commit that references this issue on Sep 5, 2024
    5f5c7e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions