summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-03-02 17:54:33 +0100
committerBram Moolenaar <Bram@vim.org>2010-03-02 17:54:33 +0100
commit8b9c05fa5416bd35597a4fbe83f811d4f6d068d7 (patch)
treed138bbea8d22cd053781bc9eadb3885c9f958ce9 /src/ex_cmds2.c
parent8006d69d3c05ef92f5915984baae79ef832380e5 (diff)
downloadvim-8b9c05fa5416bd35597a4fbe83f811d4f6d068d7.zip
updated for version 7.2.383
Problem: Vim doesn't build cleanly with MSVC 2010. Solution: Change a few types. (George Reilly)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 0fcb6c7a7..92451b5e1 100644
--- 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);