summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-23 14:16:20 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-23 14:16:20 +0200
commit5a31b46bff780a5ad42257ad38da1e42149c3311 (patch)
tree3b339dde33264d945ccce023dd0cb581b81522b9 /src
parentd5005164e1f367136c956d2941478a3aea30ec47 (diff)
downloadvim-git-5a31b46bff780a5ad42257ad38da1e42149c3311.tar.gz
updated for version 7.4.415
Problem: Cannot build. Warning for shadowed variable. (John Little) Solution: Add missing change. Remove declaration.
Diffstat (limited to 'src')
-rw-r--r--src/ex_docmd.c2
-rw-r--r--src/vim.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 682695173..c4cf1f9e1 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2150,9 +2150,9 @@ do_one_cmd(cmdlinep, sourcing,
&& ASCII_ISUPPER(*ea.cmd)
&& has_cmdundefined())
{
- char_u *p = ea.cmd;
int ret;
+ p = ea.cmd;
while (ASCII_ISALNUM(*p))
++p;
p = vim_strnsave(ea.cmd, p - ea.cmd);
diff --git a/src/vim.h b/src/vim.h
index 887a76d1f..cb2a9e5b3 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1326,6 +1326,7 @@ enum auto_event
EVENT_SHELLFILTERPOST, /* after ":1,2!cmd", ":w !cmd", ":r !cmd". */
EVENT_TEXTCHANGED, /* text was modified */
EVENT_TEXTCHANGEDI, /* text was modified in Insert mode*/
+ EVENT_CMDUNDEFINED, /* command undefined */
NUM_EVENTS /* MUST be the last one */
};