Vim incorrectly reads the number of buffer for which an autocommand 
should be registered.  The attached patch fixes the problem.

Cheers,
Lech

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/fileio.c b/src/fileio.c
index 0fa0fc8..96e442b 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -8528,7 +8528,7 @@ do_autocmd_event(event, pat, nested, cmd, forceit, group)
 	    else if (patlen > 9 && pat[7] == '=')
 	    {
 		/* <buffer=abuf> */
-		if (patlen == 13 && STRNICMP(pat, "<buffer=abuf>", 13))
+		if (patlen == 13 && STRNICMP(pat, "<buffer=abuf>", 13) == 0)
 		    buflocal_nr = autocmd_bufnr;
 		/* <buffer=123> */
 		else if (skipdigits(pat + 8) == pat + patlen - 1)

Raspunde prin e-mail lui