mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user