changeset 614:0b1b7560c456 v7.0174

updated for version 7.0174
author vimboss
date Mon, 19 Dec 2005 22:15:59 +0000
parents 53114ef7778f
children 7fe13e0f5dce
files src/eval.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -8459,12 +8459,7 @@ f_exists(argvars, rettv)
     else if (*p == '#')
     {
 #ifdef FEAT_AUTOCMD
-	name = p + 1;
-	p = vim_strchr(name, '#');
-	if (p != NULL)
-	    n = au_exists(name, p, p + 1);
-	else
-	    n = au_exists(name, name + STRLEN(name), NULL);
+	n = au_exists(p + 1);
 #endif
     }
     else				/* internal variable */