diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-06-13 14:01:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-06-13 14:01:41 +0200 |
commit | e04a48f20413f3f926d26394fad6431795348af7 (patch) | |
tree | 24168dd25a64d6e0df9cb21bdb0695070f38c5cb /src/ops.c | |
parent | 48d279215f08667ccfa243afe874ef93e228dd57 (diff) | |
download | vim-git-e04a48f20413f3f926d26394fad6431795348af7.tar.gz |
updated for version 7.3.550v7.3.550
Problem: With "j" in 'formatoptions' a list leader is not removed. (Gary
Johnson)
Solution: Don't ignore the start of a three part comment. (Lech Lorens)
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -4250,15 +4250,13 @@ skip_comment(line, process, include_space, is_comment) return line; /* Find: - * - COM_START, * - COM_END, * - colon, * whichever comes first. */ while (*comment_flags) { - if (*comment_flags == COM_START - || *comment_flags == COM_END + if (*comment_flags == COM_END || *comment_flags == ':') { break; @@ -4267,9 +4265,8 @@ skip_comment(line, process, include_space, is_comment) } /* If we found a colon, it means that we are not processing a line - * starting with an opening or a closing part of a three-part - * comment. That's good, because we don't want to remove those as - * this would be annoying. + * starting with a closing part of a three-part comment. That's good, + * because we don't want to remove those as this would be annoying. */ if (*comment_flags == ':' || *comment_flags == NUL) line += lead_len; |