comparison src/fold.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 34639bba19b0
children 8f05b3cf8557
comparison
equal deleted inserted replaced
18202:13049de86673 18203:e0ec4cd7a865
1771 line = ml_get(lnum); 1771 line = ml_get(lnum);
1772 line_len = (int)STRLEN(line); 1772 line_len = (int)STRLEN(line);
1773 1773
1774 if (u_save(lnum - 1, lnum + 1) == OK) 1774 if (u_save(lnum - 1, lnum + 1) == OK)
1775 { 1775 {
1776 #if defined(FEAT_COMMENTS)
1777 /* Check if the line ends with an unclosed comment */ 1776 /* Check if the line ends with an unclosed comment */
1778 (void)skip_comment(line, FALSE, FALSE, &line_is_comment); 1777 (void)skip_comment(line, FALSE, FALSE, &line_is_comment);
1779 #endif
1780 newline = alloc(line_len + markerlen + STRLEN(cms) + 1); 1778 newline = alloc(line_len + markerlen + STRLEN(cms) + 1);
1781 if (newline == NULL) 1779 if (newline == NULL)
1782 return; 1780 return;
1783 STRCPY(newline, line); 1781 STRCPY(newline, line);
1784 /* Append the marker to the end of the line */ 1782 /* Append the marker to the end of the line */