diff src/main.c @ 604:2930fd8e7d9f v7.0171

updated for version 7.0171
author vimboss
date Fri, 16 Dec 2005 21:55:46 +0000
parents 36071a92cb76
children 9e359e5759f6
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -820,9 +820,19 @@ main
      */
     if (params.tagname != NULL)
     {
+#if defined(HAS_SWAP_EXISTS_ACTION)
+	swap_exists_did_quit = FALSE;
+#endif
+
 	vim_snprintf((char *)IObuff, IOSIZE, "ta %s", params.tagname);
 	do_cmdline_cmd(IObuff);
 	TIME_MSG("jumping to tag");
+
+#if defined(HAS_SWAP_EXISTS_ACTION)
+	/* If the user doesn't want to edit the file then we quit here. */
+	if (swap_exists_did_quit)
+	    getout(1);
+#endif
     }
 
     /* Execute any "+", "-c" and "-S" arguments. */