diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-17 22:14:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-17 22:14:47 +0000 |
commit | a93fa7ee7856b54d3778e613c7b7e4b76aaeb2af (patch) | |
tree | 4797f43c4e1694903d93da1b61ba972955cb6aad /src/fold.c | |
parent | b21e5843e53d3582df5f521f57e7e52e83d51d10 (diff) | |
download | vim-git-a93fa7ee7856b54d3778e613c7b7e4b76aaeb2af.tar.gz |
updated for version 7.0e01v7.0e01
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fold.c b/src/fold.c index 4e23d6335..8cd51a9c2 100644 --- a/src/fold.c +++ b/src/fold.c @@ -2006,7 +2006,7 @@ foldtext_cleanup(str) /* Ignore leading and trailing white space in 'commentstring'. */ cms_start = skipwhite(curbuf->b_p_cms); - cms_slen = STRLEN(cms_start); + cms_slen = (int)STRLEN(cms_start); while (cms_slen > 0 && vim_iswhite(cms_start[cms_slen - 1])) --cms_slen; @@ -2014,8 +2014,8 @@ foldtext_cleanup(str) cms_end = (char_u *)strstr((char *)cms_start, "%s"); if (cms_end != NULL) { - cms_elen = cms_slen - (cms_end - cms_start); - cms_slen = cms_end - cms_start; + cms_elen = cms_slen - (int)(cms_end - cms_start); + cms_slen = (int)(cms_end - cms_start); /* exclude white space before "%s" */ while (cms_slen > 0 && vim_iswhite(cms_start[cms_slen - 1])) @@ -2023,7 +2023,7 @@ foldtext_cleanup(str) /* skip "%s" and white space after it */ s = skipwhite(cms_end + 2); - cms_elen -= s - cms_end; + cms_elen -= (int)(s - cms_end); cms_end = s; } parseMarker(curwin); @@ -2047,7 +2047,7 @@ foldtext_cleanup(str) if (p >= str + cms_slen && STRNCMP(p - cms_slen, cms_start, cms_slen) == 0) { - len += (s - p) + cms_slen; + len += (int)(s - p) + cms_slen; s = p - cms_slen; } } |