diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-11 19:31:05 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2020-01-11 16:31:05 -0800 |
commit | 1cbe8d6d78a6d9fcef36daab5231bb74e58f5c7f (patch) | |
tree | 6466a05353956f3ebfdc58f313964496f5543b78 /src | |
parent | 462ee281b779b0f2189132a75dccebeb38a62042 (diff) | |
download | rneovim-1cbe8d6d78a6d9fcef36daab5231bb74e58f5c7f.tar.gz rneovim-1cbe8d6d78a6d9fcef36daab5231bb74e58f5c7f.tar.bz2 rneovim-1cbe8d6d78a6d9fcef36daab5231bb74e58f5c7f.zip |
vim-patch:8.0.1593: :qall never exits active :terminal #11704
Problem: :qall never exits with an active terminal window.
Solution: Add a way to kill a job in a terminal window.
https://github.com/vim/vim/commit/25cdd9c33b21ddbd31321c075873bb225450d2d2
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds2.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 496aecfb27..a3d49c682e 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -1414,6 +1414,7 @@ bool check_changed_any(bool hidden, bool unload) size_t bufcount = 0; int *bufnrs; + // Make a list of all buffers, with the most important ones first. FOR_ALL_BUFFERS(buf) { bufcount++; } @@ -1426,14 +1427,15 @@ bool check_changed_any(bool hidden, bool unload) // curbuf bufnrs[bufnum++] = curbuf->b_fnum; - // buf in curtab + + // buffers in current tab FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_buffer != curbuf) { add_bufnum(bufnrs, &bufnum, wp->w_buffer->b_fnum); } } - // buf in other tab + // buffers in other tabs FOR_ALL_TABS(tp) { if (tp != curtab) { FOR_ALL_WINDOWS_IN_TAB(wp, tp) { @@ -1442,7 +1444,7 @@ bool check_changed_any(bool hidden, bool unload) } } - // any other buf + // any other buffer FOR_ALL_BUFFERS(buf) { add_bufnum(bufnrs, &bufnum, buf->b_fnum); } @@ -1471,6 +1473,7 @@ bool check_changed_any(bool hidden, bool unload) goto theend; } + // Get here if "buf" cannot be abandoned. ret = true; exiting = false; // When ":confirm" used, don't give an error message. |