diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-11-24 20:50:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-11-24 20:50:24 +0000 |
commit | ed53fb9a48f26bc603c74adcc73473eacfdca242 (patch) | |
tree | 3e599e7af4b35de77f73fcac11422bf2794e23e8 /src/ex_eval.c | |
parent | e0ca7b2b04fda8487c6a161cc4a3b044f877c618 (diff) | |
download | vim-ed53fb9a48f26bc603c74adcc73473eacfdca242.zip |
updated for version 7.1-162
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r-- | src/ex_eval.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c index 1523d8f17..a821ef854 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -2269,9 +2269,18 @@ ex_endfunction(eap) has_loop_cmd(p) char_u *p; { - p = skipwhite(p); - while (*p == ':') - p = skipwhite(p + 1); + int len; + + /* skip modifiers, white space and ':' */ + for (;;) + { + while (*p == ' ' || *p == '\t' || *p == ':') + ++p; + len = modifier_len(p); + if (len == 0) + break; + p += len; + } if ((p[0] == 'w' && p[1] == 'h') || (p[0] == 'f' && p[1] == 'o' && p[2] == 'r')) return TRUE; |