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

Don't treat lines that start with 1 char as lists #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srsudar
Copy link

@srsudar srsudar commented Jul 31, 2018

This fixes #70. I am surprised that this hasn't come up before, however, so I would love someone else to confirm that this doesn't break cases I haven't tested. Maybe I only noticed it because I have turned textwidth back to my normal value.

Part of the previous formatlistpat regex doesn't appear to match what I think it should. Specifically this: [+-\\*]. That is supposed to match one of +, -, or *. However when I run that on my own vim v8.0, it does not. That double escape I think is supposed to become either [+-*] or [+-\*]. When I try to run it via / it doesn't match what I expect. I think that it is interpreting - as a range operator or something funky like that.

This appears to correct the problem for me, though I haven't run it against your goldens.

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

Successfully merging this pull request may close these issues.

Odd behavior with wrap
1 participant