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

support windows/dos line endings #43

Closed
Un1q32 opened this issue Jul 13, 2023 · 1 comment
Closed

support windows/dos line endings #43

Un1q32 opened this issue Jul 13, 2023 · 1 comment

Comments

@Un1q32
Copy link
Contributor

Un1q32 commented Jul 13, 2023

currently opening a file with CRLF line endings displays a garbage character at the end of each line

@kyx0r
Copy link
Owner

kyx0r commented Jul 13, 2023

If the placeholder character is annoying how about replacing it here:

struct placeholder placeholders[] = {
        {0x200c, "-", 1}, /* ‌ */
        {0x200d, "-", 1}, /* ‍ */
        {0x000d, " ", 1}, /* ^M */
 };

Note that it will only hide it, but not change the underlying file in any way.
Doing any kind of seamless line endings is out of the scope for now.

Or, just get rid of the ^M manually by running vo keybind in normal.
Feature 6. documents that.

@Un1q32 Un1q32 closed this as completed Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants