commit | eb44a68b42eda207a5bc4def9ea8fc4d38acb650 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Aug 03 22:44:55 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Aug 03 22:44:55 2017 +0200 |
tree | 6fae22aba3c4f1eaad8e6d5e4d74df201c78a65e | |
parent | 620d064b0b0bca2268574abdec2d8eac3384cfdf [diff] [blame] |
patch 8.0.0858: can exit while a terminal is still running a job Problem: Can exit while a terminal is still running a job. Solution: Consider a buffer with a running job like a changed file.
diff --git a/src/window.c b/src/window.c index 948303c..3110098 100644 --- a/src/window.c +++ b/src/window.c
@@ -3379,7 +3379,8 @@ #endif continue; } - win_close(wp, !P_HID(wp->w_buffer) && !bufIsChanged(wp->w_buffer)); + win_close(wp, !buf_hide(wp->w_buffer) + && !bufIsChanged(wp->w_buffer)); } }