summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-12-16 21:55:46 +0000
committerBram Moolenaar <Bram@vim.org>2005-12-16 21:55:46 +0000
commit146522e760717283465d58327be5cfd29434dfe5 (patch)
tree3770ddf5a03a77aa203d4b64ccefeb10792de33a /src
parent83c465c7051cd13b70a3fba8e4f8021a41214cbf (diff)
downloadvim-git-146522e760717283465d58327be5cfd29434dfe5.tar.gz
updated for version 7.0171v7.0171
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index bd40c6c7a..89bad4c95 100644
--- 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. */