Mercurial > vim
diff src/search.c @ 3562:5c1aaf9b4b1b v7.3.541
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 06 Jun 2012 16:12:59 +0200 |
parents | c70c005f61fb |
children | c612d154bcdd |
line wrap: on
line diff
--- 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; /*