summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 20:37:21 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 20:37:21 +0100
commit025a6b708a9bff54c73fb9c641b980da19e943a9 (patch)
tree9d1534b7d2637c7ef6c851a158c2eb99becefbfd /src/ops.c
parent1c46544412382db8b3203d6c78e550df885540bd (diff)
downloadvim-git-025a6b708a9bff54c73fb9c641b980da19e943a9.tar.gz
patch 8.0.0453: adding fold marker creates new commentv8.0.0453
Problem: Adding fold marker creates new comment. Solution: Use an existing comment if possible. (LemonBoy, closes #1549)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ops.c b/src/ops.c
index 053aeca91..d3e97f07f 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -113,9 +113,6 @@ static void copy_yank_reg(yankreg_T *reg);
static void may_set_selection(void);
#endif
static void dis_msg(char_u *p, int skip_esc);
-#if defined(FEAT_COMMENTS) || defined(PROTO)
-static char_u *skip_comment(char_u *line, int process, int include_space, int *is_comment);
-#endif
static void block_prep(oparg_T *oap, struct block_def *, linenr_T, int);
static int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1);
#if defined(FEAT_CLIPBOARD) || defined(FEAT_EVAL)
@@ -4301,7 +4298,7 @@ dis_msg(
* is_comment - will indicate whether the current line ends with an unclosed
* comment.
*/
- static char_u *
+ char_u *
skip_comment(
char_u *line,
int process,