diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-06-06 16:12:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-06-06 16:12:59 +0200 |
commit | 8134039744ffa581f7c217df58131b709317c1c8 (patch) | |
tree | f8fd1cddb2359407b77c3b9a494a27a451e6378c /src/search.c | |
parent | bc256d91eadb8f32d6a5833c1878684d3c75fb2d (diff) | |
download | vim-8134039744ffa581f7c217df58131b709317c1c8.zip |
updated for version 7.3.541
Problem: When joining lines comment leaders need to be removed manually.
Solution: Add the 'j' flag to 'formatoptions'. (Lech Lorens)
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 59de988a7..1db967de2 100644 --- a/src/search.c +++ b/src/search.c @@ -1548,7 +1548,7 @@ searchc(cap, t_cmd) int len; int stop = TRUE; #ifdef FEAT_MBYTE - static char_u bytes[MB_MAXBYTES]; + static char_u bytes[MB_MAXBYTES + 1]; static int bytelen = 1; /* >1 for multi-byte char */ #endif @@ -4901,7 +4901,7 @@ search_line: #ifdef FEAT_COMMENTS if ((*line != '#' || STRNCMP(skipwhite(line + 1), "define", 6) != 0) - && get_leader_len(line, NULL, FALSE)) + && get_leader_len(line, NULL, FALSE, TRUE)) matched = FALSE; /* |