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/main.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/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index 8c7d3d68b..83e55d1a7 100644 --- a/src/main.c +++ b/src/main.c @@ -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) { |