Skip to content

Weird search behavior when query contains trailing space #5519

@user1823

Description

@user1823

SumatraPDF version

  • v3.7.18265

Describe the bug
Weird search behavior when query contains trailing space

To Reproduce
Steps to reproduce the behavior:

  1. Search for a text with a trailing space, e.g. "dog " (in an attempt to find only complete word matches)
  2. The first search result appears
  3. Press enter or the next button to go to the next result
  4. Sumatra doesn't try to find the next match.

Expected behavior
The next match should be found.

File that reproduces the problem
If this is related to a specific PDF etc. file, please attach the file.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
This doesn't happen when searching for text without a space.

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