-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
With this text and textwidth set to 80:
foo = dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + sdTyping another letter results in:
foo = dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + dfgdfgdgf + dfgdfgdgf +
sdfWhich is a SyntaxError.
I think a simple fix would be to add this:
setlocal formatoptions-=tMaybe there's some way to detect if there are unclosed parentheses or other syntax that would allow line wrapping, and only wrap if it wouldn't be a SyntaxError? Not sure it's worth the additional complication though, even if that is possible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels