Mercurial > vim
diff src/ex_cmds2.c @ 2100:7d121c69f540 v7.2.383
updated for version 7.2.383
Problem: Vim doesn't build cleanly with MSVC 2010.
Solution: Change a few types. (George Reilly)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Tue, 02 Mar 2010 17:54:33 +0100 |
parents | 5a84b6388a55 |
children | 4c6b4298852f |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -1165,7 +1165,6 @@ set_context_in_profile_cmd(xp, arg) char_u *arg; { char_u *end_subcmd; - int len; /* Default: expand subcommands. */ xp->xp_context = EXPAND_PROFILE; @@ -1176,8 +1175,7 @@ set_context_in_profile_cmd(xp, arg) if (*end_subcmd == NUL) return; - len = end_subcmd - arg; - if (len == 5 && STRNCMP(arg, "start", 5) == 0) + if (end_subcmd - arg == 5 && STRNCMP(arg, "start", 5) == 0) { xp->xp_context = EXPAND_FILES; xp->xp_pattern = skipwhite(end_subcmd);