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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user