-
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
Search and Replace in broken in files using only CR as line-ending #40908
Comments
Weird. Great soundtrack though.
|
Upon further investigation, yes it seems like it has something to do with the encoding. When I copy-paste the content from my first post to a new file, everything works as intended. Here is one of the files with which I can reproduce this: This is the output of search pane:
Any pattern that matches at least once triggers this behavior it seems. So far this is the first time I encountered this issue, and it may indeed be due to the file encoding. I have not experienced this with other files. PS: link to the soundtrack, artists are listed in the description. |
It seems like it's because these files use only CR ( |
That's right - there was another issue for this but I can't find it. We don't support CR-only line endings well in general - #35797, I'll call this a dupe of that for now. Is that on purpose? I can't really tell how common it is. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
I don't think it is that common. Whether this was intentional for these files I don't know. |
Side note: It appears that mac OS used CR only as line-ending until version 9 (src: http://vim.wikia.com/wiki/File_format). |
It appears that there is a bug with the search and replace functionality. It is encountered when editing multiple XML files. I have recorded a screen capture to illustrate the issue.
https://youtu.be/ehuqer244S4
Content of one XML file:
Steps to Reproduce:
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: