diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-20 21:15:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-20 21:15:15 +0200 |
commit | 4d14bac8e7441368977e81266166f728105a60d4 (patch) | |
tree | 3f01c776a80d91bb2568621df4e494846ea10460 /src/ex_docmd.c | |
parent | 4b57018ee4e6d608e3a28e0ee4fdd2f057cc0e89 (diff) |
patch 8.1.2195: Vim does not exit when the terminal window is last windowv8.1.2195
Problem: Vim does not exit when closing a terminal window and it is the
last window.
Solution: Exit Vim if the closed terminal window is the last one.
(closes #4539)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 1d0476946d..d9fe7de75e 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -87,7 +87,6 @@ static char_u *replace_makeprg(exarg_T *eap, char_u *p, char_u **cmdlinep); static char_u *repl_cmdline(exarg_T *eap, char_u *src, int srclen, char_u *repl, char_u **cmdlinep); static void ex_highlight(exarg_T *eap); static void ex_colorscheme(exarg_T *eap); -static void ex_quit(exarg_T *eap); static void ex_cquit(exarg_T *eap); static void ex_quit_all(exarg_T *eap); static void ex_close(exarg_T *eap); @@ -4842,8 +4841,9 @@ before_quit_autocmds(win_T *wp, int quit_all, int forceit) /* * ":quit": quit current window, quit Vim if the last window is closed. * ":{nr}quit": quit window {nr} + * Also used when closing a terminal window that's the last one. */ - static void + void ex_quit(exarg_T *eap) { win_T *wp; |