diff options
Diffstat (limited to 'src/nvim/os/signal.c')
-rw-r--r-- | src/nvim/os/signal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/os/signal.c b/src/nvim/os/signal.c index 55efce0337..b09d11bc51 100644 --- a/src/nvim/os/signal.c +++ b/src/nvim/os/signal.c @@ -212,10 +212,14 @@ static void on_signal(SignalWatcher *handle, int signum, void *data) // Ignore break; #endif - case SIGTERM: #ifdef SIGTSTP case SIGTSTP: + if (p_awa) { + autowrite_all(); + } + break; #endif + case SIGTERM: #ifdef SIGQUIT case SIGQUIT: #endif |