Patch 8.2.0745

6 views
Skip to first unread message

Bram Moolenaar

unread,
May 12, 2020, 5:46:23 PM5/12/20
to vim...@googlegroups.com

Patch 8.2.0745
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.
Files: src/misc2.c, src/ex_cmds.c


*** ../vim-8.2.0744/src/misc2.c 2020-04-13 18:13:30.232982723 +0200
--- src/misc2.c 2020-05-12 23:41:08.169532433 +0200
***************
*** 1069,1074 ****
--- 1069,1082 ----
# if defined(FEAT_BEVAL_TERM)
ui_remove_balloon();
# 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).
ex_comclear(NULL);
***************
*** 3144,3151 ****
if (p_verbose > 3)
{
verbose_enter();
! smsg(_("Calling shell to execute: \"%s\""),
! cmd == NULL ? p_sh : cmd);
out_char('\n');
cursor_on();
verbose_leave();
--- 3152,3158 ----
if (p_verbose > 3)
{
verbose_enter();
! smsg(_("Calling shell to execute: \"%s\""), cmd == NULL ? p_sh : cmd);
out_char('\n');
cursor_on();
verbose_leave();
*** ../vim-8.2.0744/src/ex_cmds.c 2020-05-12 22:02:17.889963176 +0200
--- src/ex_cmds.c 2020-05-12 23:29:53.115735295 +0200
***************
*** 2484,2494 ****
int did_inc_redrawing_disabled = FALSE;
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)
command = eap->do_ecmd_cmd;
set_bufref(&old_curbuf, curbuf);
--- 2484,2489 ----
*** ../vim-8.2.0744/src/version.c 2020-05-12 22:21:18.444836392 +0200
--- src/version.c 2020-05-12 23:28:17.588033393 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 745,
/**/

--
There's no place like $(HOME)!

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages