summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-28 19:05:57 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-28 19:05:57 +0200
commit8c96af9c05bfcac2d5ae081e098d4863db561511 (patch)
treeaa01cdaf87cf8050334c8cb20014774623614e73 /src/insexpand.c
parenta893194d91a2942d4d54085d746ed137a9251b69 (diff)
patch 8.1.2096: too many #ifdefsv8.1.2096
Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index eecc7f684f..644542e94f 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -3861,17 +3861,13 @@ ins_complete(int c, int enable_pum)
if (ctrl_x_mode_line_or_eval())
{
// Insert a new line, keep indentation but ignore 'comments'
-#ifdef FEAT_COMMENTS
char_u *old = curbuf->b_p_com;
curbuf->b_p_com = (char_u *)"";
-#endif
compl_startpos.lnum = curwin->w_cursor.lnum;
compl_startpos.col = compl_col;
ins_eol('\r');
-#ifdef FEAT_COMMENTS
curbuf->b_p_com = old;
-#endif
compl_length = 0;
compl_col = curwin->w_cursor.col;
}