comparison src/ex_eval.c @ 1447:dac5006b4443 v7.1.162

updated for version 7.1-162
author vimboss
date Sat, 24 Nov 2007 20:50:24 +0000
parents 01762f635bab
children e5602d92da8c
comparison
equal deleted inserted replaced
1446:f0b3b9ac2147 1447:dac5006b4443
2267 */ 2267 */
2268 int 2268 int
2269 has_loop_cmd(p) 2269 has_loop_cmd(p)
2270 char_u *p; 2270 char_u *p;
2271 { 2271 {
2272 p = skipwhite(p); 2272 int len;
2273 while (*p == ':') 2273
2274 p = skipwhite(p + 1); 2274 /* skip modifiers, white space and ':' */
2275 for (;;)
2276 {
2277 while (*p == ' ' || *p == '\t' || *p == ':')
2278 ++p;
2279 len = modifier_len(p);
2280 if (len == 0)
2281 break;
2282 p += len;
2283 }
2275 if ((p[0] == 'w' && p[1] == 'h') 2284 if ((p[0] == 'w' && p[1] == 'h')
2276 || (p[0] == 'f' && p[1] == 'o' && p[2] == 'r')) 2285 || (p[0] == 'f' && p[1] == 'o' && p[2] == 'r'))
2277 return TRUE; 2286 return TRUE;
2278 return FALSE; 2287 return FALSE;
2279 } 2288 }