patch 7.4.1598
Problem: When starting the GUI fails a swap file is left behind. (Joerg
Plate)
Solution: Preserve files before exiting. (closes #692)
diff --git a/src/main.c b/src/main.c
index 8c7d3d6..83e55d1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1355,7 +1355,7 @@
}
-#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.
*/
@@ -1377,7 +1377,9 @@
#endif
-/* Exit properly */
+/*
+ * Exit properly.
+ */
void
getout(int exitval)
{