Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix expand_cr behavior with 'smartindent'
When indentation is controlled by 'smartindent', the expand_cr behavior doesn't end up producing the same results that you would get without delimitMate. The following behavior results instead: Before: {|} After: { | } The expected behavior is to produce the following: Before: {|} After: { | } To that end, detect when indentation is controlled by 'smartindent' and adjust the indentation of the close line to match.
- Loading branch information