From 7bb029eeef65f57d94cef4e4b709e6c3ebefcf08 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 2 Sep 2019 01:54:49 -0400 Subject: vim-patch:8.0.0858: check if job terminal is running #10908 Problem: Can exit while a terminal is still running a job. Solution: Consider a buffer with a running job like a changed file. https://github.com/vim/vim/commit/eb44a68b42eda207a5bc4def9ea8fc4d38acb650 --- src/nvim/option.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/option.c') diff --git a/src/nvim/option.c b/src/nvim/option.c index 04349414a2..d1753526a7 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -6985,6 +6985,7 @@ void save_file_ff(buf_T *buf) /// When "ignore_empty" is true don't consider a new, empty buffer to be /// changed. bool file_ff_differs(buf_T *buf, bool ignore_empty) + FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT { // In a buffer that was never loaded the options are not valid. if (buf->b_flags & BF_NEVERLOADED) { -- cgit