Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search doesn't ignore newlines #461

Open
2 tasks done
physixcat opened this issue Jun 11, 2024 · 0 comments
Open
2 tasks done

Search doesn't ignore newlines #461

physixcat opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@physixcat
Copy link

The issue is already reported or known issue?

  • I have searched the existing issues on github
  • I am using the latest version

Current behavior

When visiting this site , I noticed that using / to search for the string "fix your" comes up with zero results. Same problem if any string contains this substring (ie "should fix your"). However, if you search for "should fix" or "your program", those turn up.

I then looked at the source code for the page and noticed the problem: there are newlines in the html file here. "fix" happens to be at the end of a line, and "your" at the beginning of the next. That's why the search fails, because it doesn't ignore new lines. The same problem occurs when trying to search for "my views" (they are on separate lines in the source)

Expected behavior

Searching "fix your" or a string including it and the surrounding words should return a successful result in a search

Steps to reproduce

  1. Open page https://www.kernel.org/doc/html/next/process/coding-style.html
  2. Press key /
  3. Type fix your, hit enter
  4. The extension says Pattern not found: fix your
  5. Press / and type should fix, hit enter
  6. Result is highlighted correctly
  7. Press / and type your program, hit enter
  8. Result is highlighted correctly

Environment

  • OS: Debian Sid
  • Browser: Firefox
  • Vimmatic version: 0.7.1
@physixcat physixcat added the bug Something isn't working label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant