Mercurial > vim
diff src/ex_docmd.c @ 18402:527b7084c556 v8.1.2195
patch 8.1.2195: Vim does not exit when the terminal window is last window
Commit: https://github.com/vim/vim/commit/4d14bac8e7441368977e81266166f728105a60d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 20 21:15:15 2019 +0200
patch 8.1.2195: Vim does not exit when the terminal window is last window
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Oct 2019 21:30:03 +0200 |
parents | 105c6cf8b266 |
children | fa6efc49d71f |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -87,7 +87,6 @@ static char_u *replace_makeprg(exarg_T * 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 /* * ":quit": quit current window, quit Vim if the last window is closed. * ":{nr}quit": quit window {nr} - */ - static void + * Also used when closing a terminal window that's the last one. + */ + void ex_quit(exarg_T *eap) { win_T *wp;