defunkt/coffee-mode

coffee-newline-and-indent modifies long lines

Closed this issue · 2 comments

When pressing return/enter on a long line, the line is automatically modified to some pseudo-unpredictable format.

Example:

funReallyLongFunctionNameThatShouldBreakCoffeeMode = (a, b, c, d, e, f, g, h, u, j, k, l) ->

With cursor at the end of the line (C-e), pressing return/enter yields this:

funReallyLongFunctionNameThatShouldBreakCoffeeMode = (a, b, c, d, e,
f, g, h, u, j, k, l) ->

I'm unsure what the process is behind determining what line needs highlighting and what doesn't.

I would just like an easy way to disable this feature/bug while still being able to use the "newline then indent" feature.

I have fixed at #342. Please check latest version.

Thanks @syohex! That worked perfectly.