summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-12 14:16:39 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-12 14:16:39 +0000
commit6e371ecb27227ff8fedd8561d0f3880a17576848 (patch)
tree29129df4da69f0093ac1b763dffb2be45e84c587 /src/edit.c
parent9a4ec5a62632af040c278a189e256043740f5c7f (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 8dd60941a0..40d5c4e583 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;