Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retain indentation level of previous line.
Before, if GetCoffeeIndent didn't detect the need to indent / outdent, it would return -1. Now it returns the indentation level of the previous line if it exists. This makes for more convenient behavior when typing 'cc' on an empty line below an indented line, and matches how other vim extensions such as javascript behave.
- Loading branch information
2a691d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduced an annoying side-effect. When you add or open a line in a comment block the new line is indented. Example
2a691d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for letting me know. I'm working on a fix.