Mercurial > vim
diff src/insexpand.c @ 18203:e0ec4cd7a865 v8.1.2096
patch 8.1.2096: too many #ifdefs
Commit: https://github.com/vim/vim/commit/8c96af9c05bfcac2d5ae081e098d4863db561511
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 28 19:05:57 2019 +0200
patch 8.1.2096: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_COMMENTS.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Sep 2019 19:15:03 +0200 |
parents | 1868ec23360e |
children | 34d5cd432cac |
line wrap: on
line diff
--- 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; }