diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-19 14:48:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-19 14:48:31 +0100 |
commit | 6d8d849f5ac8a3a228c62fd29e8f40ae1b8381fc (patch) | |
tree | 3451095c6dc6f0873f2ef404f4337c5ffa0d1a0f /src/gui.c | |
parent | 9f6154f26ef17b0a7efd2fcdd79cabfe510f28b4 (diff) | |
download | vim-git-6d8d849f5ac8a3a228c62fd29e8f40ae1b8381fc.tar.gz |
patch 7.4.1598v7.4.1598
Problem: When starting the GUI fails a swap file is left behind. (Joerg
Plate)
Solution: Preserve files before exiting. (closes #692)
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -105,7 +105,7 @@ gui_start(void) /* If there is 'f' in 'guioptions' and specify -g argument, * gui_mch_init_check() was not called yet. */ if (gui_mch_init_check() != OK) - exit(1); + getout_preserve_modified(1); #endif gui_attempt_start(); } @@ -272,7 +272,7 @@ gui_do_fork(void) #ifdef FEAT_GUI_GTK /* Call gtk_init_check() here after fork(). See gui_init_check(). */ if (gui_mch_init_check() != OK) - exit(1); + getout_preserve_modified(1); #endif # if defined(HAVE_SETSID) || defined(HAVE_SETPGID) @@ -309,7 +309,7 @@ gui_do_fork(void) /* If we failed to start the GUI, exit now. */ if (!gui.in_use) - exit(1); + getout_preserve_modified(1); } /* |