/* 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();
}
#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)
/* If we failed to start the GUI, exit now. */
if (!gui.in_use)
- exit(1);
+ getout_preserve_modified(1);
}
/*
}
-#if defined(USE_XSMP) || defined(FEAT_GUI_MSWIN) || defined(PROTO)
+#if defined(USE_XSMP) || defined(FEAT_GUI) || defined(PROTO)
/*
* Exit, but leave behind swap files for modified buffers.
*/
#endif
-/* Exit properly */
+/*
+ * Exit properly.
+ */
void
getout(int exitval)
{