comparison 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
comparison
equal deleted inserted replaced
18202:13049de86673 18203:e0ec4cd7a865
3859 { 3859 {
3860 edit_submode_pre = (char_u *)_(" Adding"); 3860 edit_submode_pre = (char_u *)_(" Adding");
3861 if (ctrl_x_mode_line_or_eval()) 3861 if (ctrl_x_mode_line_or_eval())
3862 { 3862 {
3863 // Insert a new line, keep indentation but ignore 'comments' 3863 // Insert a new line, keep indentation but ignore 'comments'
3864 #ifdef FEAT_COMMENTS
3865 char_u *old = curbuf->b_p_com; 3864 char_u *old = curbuf->b_p_com;
3866 3865
3867 curbuf->b_p_com = (char_u *)""; 3866 curbuf->b_p_com = (char_u *)"";
3868 #endif
3869 compl_startpos.lnum = curwin->w_cursor.lnum; 3867 compl_startpos.lnum = curwin->w_cursor.lnum;
3870 compl_startpos.col = compl_col; 3868 compl_startpos.col = compl_col;
3871 ins_eol('\r'); 3869 ins_eol('\r');
3872 #ifdef FEAT_COMMENTS
3873 curbuf->b_p_com = old; 3870 curbuf->b_p_com = old;
3874 #endif
3875 compl_length = 0; 3871 compl_length = 0;
3876 compl_col = curwin->w_cursor.col; 3872 compl_col = curwin->w_cursor.col;
3877 } 3873 }
3878 } 3874 }
3879 else 3875 else