1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2016-03-19 14:48:31 +01:00
parent 9f6154f26e
commit 6d8d849f5a
3 changed files with 9 additions and 5 deletions

View File

@@ -1355,7 +1355,7 @@ main_loop(
}
#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 @@ getout_preserve_modified(int exitval)
#endif
/* Exit properly */
/*
* Exit properly.
*/
void
getout(int exitval)
{