diff src/main.c @ 218:0d6554dfc71e v7.0061

updated for version 7.0061
author vimboss
date Fri, 18 Mar 2005 20:30:32 +0000
parents 8c60f65311fa
children 73354c21f1e4
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -1996,10 +1996,11 @@ scripterror:
     {
 	/*
 	 * We start commands on line 0, make "vim +/pat file" match a
-	 * pattern on line 1.
+	 * pattern on line 1.  But don't move the cursor when an autocommand
+	 * with g`" was used.
 	 */
 	msg_scroll = TRUE;
-	if (tagname == NULL)
+	if (tagname == NULL && curwin->w_cursor.lnum <= 1)
 	    curwin->w_cursor.lnum = 0;
 	sourcing_name = (char_u *)"command line";
 #ifdef FEAT_EVAL