-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Files using CRLF breaks shows as having no line breaks in Search Results in Editor #191347
Comments
|
Always used $ for end of line, but just looked it up and its 'engine dependent'. Tried with \r?\n or even \n, and its doesn't find a match. You can see in the attached screen shot, the search results tab seems to consider the file as all one line (some crude censoring by me). Even with Line Context at zero, the entire document is in the result. (test.txt, has regular line breaks, the M8N03268 is the demonstration). |
Looks like a titled this incorrectly, I appears to be only for files that use a single 0D (CR) for line break. CRLF (0D0A) has no issue. |
I believe that CR line endings aren't supported. See here: #35797 |
Would the best course to close this as duplicate? |
Yes. /duplicate #35797 |
Does this issue occur when all extensions are disabled?: Yes
Version: 1.81.1 (user setup)
Commit: 6c3e3db
Date: 2023-08-09T22:22:42.175Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19044
If searching files and use Search Results to Editor with files with CRLF line breaks, The Results in Editor tab shows the entire file as on one line (no line breaks).
Particularly noticeable if using Regex $ or \n. The line breaks are not matched.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: