Merge pull request #1738 from fwalch/vim-7.4.549

vim-patch:7.4.549
This commit is contained in:
Justin M. Keyes
2014-12-30 00:03:44 -05:00
3 changed files with 57 additions and 8 deletions

View File

@@ -17580,15 +17580,14 @@ void ex_function(exarg_T *eap)
/* Check for defining a function inside this function. */
if (checkforcmd(&p, "function", 2)) {
if (*p == '!')
if (*p == '!') {
p = skipwhite(p + 1);
}
p += eval_fname_script(p);
if (ASCII_ISALPHA(*p)) {
free(trans_function_name(&p, TRUE, 0, NULL));
if (*skipwhite(p) == '(') {
++nesting;
indent += 2;
}
free(trans_function_name(&p, TRUE, 0, NULL));
if (*skipwhite(p) == '(') {
nesting++;
indent += 2;
}
}