mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
patch 8.2.0745: crash on exit when not all popups are closed
Problem: Crash on exit when not all popups are closed. Solution: Close popups when freeing all memory. Disable checking for popup when editing a file for now.
This commit is contained in:
parent
47e13953ff
commit
06f0853cb0
@ -2484,11 +2484,6 @@ do_ecmd(
|
|||||||
int did_inc_redrawing_disabled = FALSE;
|
int did_inc_redrawing_disabled = FALSE;
|
||||||
long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
|
long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
|
||||||
|
|
||||||
#ifdef FEAT_PROP_POPUP
|
|
||||||
if (ERROR_IF_TERM_POPUP_WINDOW)
|
|
||||||
return FAIL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (eap != NULL)
|
if (eap != NULL)
|
||||||
command = eap->do_ecmd_cmd;
|
command = eap->do_ecmd_cmd;
|
||||||
set_bufref(&old_curbuf, curbuf);
|
set_bufref(&old_curbuf, curbuf);
|
||||||
|
11
src/misc2.c
11
src/misc2.c
@ -1069,6 +1069,14 @@ free_all_mem(void)
|
|||||||
# if defined(FEAT_BEVAL_TERM)
|
# if defined(FEAT_BEVAL_TERM)
|
||||||
ui_remove_balloon();
|
ui_remove_balloon();
|
||||||
# endif
|
# endif
|
||||||
|
# if defined(FEAT_PROP_POPUP)
|
||||||
|
if (curwin != NULL)
|
||||||
|
{
|
||||||
|
while (popup_is_popup(curwin))
|
||||||
|
popup_close_with_retval(curwin, 0);
|
||||||
|
close_all_popups();
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
// Clear user commands (before deleting buffers).
|
// Clear user commands (before deleting buffers).
|
||||||
ex_comclear(NULL);
|
ex_comclear(NULL);
|
||||||
@ -3144,8 +3152,7 @@ call_shell(char_u *cmd, int opt)
|
|||||||
if (p_verbose > 3)
|
if (p_verbose > 3)
|
||||||
{
|
{
|
||||||
verbose_enter();
|
verbose_enter();
|
||||||
smsg(_("Calling shell to execute: \"%s\""),
|
smsg(_("Calling shell to execute: \"%s\""), cmd == NULL ? p_sh : cmd);
|
||||||
cmd == NULL ? p_sh : cmd);
|
|
||||||
out_char('\n');
|
out_char('\n');
|
||||||
cursor_on();
|
cursor_on();
|
||||||
verbose_leave();
|
verbose_leave();
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
745,
|
||||||
/**/
|
/**/
|
||||||
744,
|
744,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user