diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-12 14:16:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-12 14:16:39 +0000 |
commit | 6e371ecb27227ff8fedd8561d0f3880a17576848 (patch) | |
tree | 29129df4da69f0093ac1b763dffb2be45e84c587 /src/edit.c | |
parent | 9a4ec5a62632af040c278a189e256043740f5c7f (diff) | |
download | vim-git-6e371ecb27227ff8fedd8561d0f3880a17576848.tar.gz |
patch 8.2.3787: no proper formatting of a C line comment after a statementv8.2.3787
Problem: No proper formatting of a C line comment after a statement.
Solution: Find the start of the line comment, insert the comment leader and
indent the comment properly.
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index 8dd60941a..40d5c4e58 100644 --- a/src/edit.c +++ b/src/edit.c @@ -5147,7 +5147,8 @@ ins_eol(int c) AppendToRedobuff(NL_STR); i = open_line(FORWARD, - has_format_option(FO_RET_COMS) ? OPENLINE_DO_COM : 0, old_indent); + has_format_option(FO_RET_COMS) ? OPENLINE_DO_COM : 0, old_indent, + NULL); old_indent = 0; #ifdef FEAT_CINDENT can_cindent = TRUE; |