mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Merge remote-tracking branch 'vim/master'
This commit is contained in:
@@ -1976,7 +1976,12 @@ gui_show_popupmenu(void)
|
||||
|
||||
/* Only show a popup when it is defined and has entries */
|
||||
if (menu != NULL && menu->children != NULL)
|
||||
{
|
||||
/* Update the menus now, in case the MenuPopup autocommand did
|
||||
* anything. */
|
||||
gui_update_menus(0);
|
||||
gui_mch_show_popupmenu(menu);
|
||||
}
|
||||
}
|
||||
#endif /* FEAT_GUI */
|
||||
|
||||
|
||||
@@ -1090,6 +1090,12 @@ deathtrap SIGDEFARG(sigarg)
|
||||
/* Remember how often we have been called. */
|
||||
++entered;
|
||||
|
||||
#ifdef FEAT_AUTOCMD
|
||||
/* Executing autocommands is likely to use more stack space than we have
|
||||
* available in the signal stack. */
|
||||
block_autocmds();
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
/* Set the v:dying variable. */
|
||||
set_vim_var_nr(VV_DYING, (long)entered);
|
||||
@@ -1171,6 +1177,8 @@ deathtrap SIGDEFARG(sigarg)
|
||||
* calling free(). */
|
||||
preserve_exit();
|
||||
|
||||
/* NOTREACHED */
|
||||
|
||||
#ifdef NBDEBUG
|
||||
reset_signals();
|
||||
may_core_dump();
|
||||
|
||||
@@ -1335,6 +1335,20 @@ func Test_using_freed_memory()
|
||||
call test_garbagecollect_now()
|
||||
endfunc
|
||||
|
||||
func Test_collapse_buffers()
|
||||
if !executable('cat')
|
||||
return
|
||||
endif
|
||||
sp test_channel.vim
|
||||
let g:linecount = line('$')
|
||||
close
|
||||
split testout
|
||||
1,$delete
|
||||
call job_start('cat test_channel.vim', {'out_io': 'buffer', 'out_name': 'testout'})
|
||||
call s:waitFor('line("$") > g:linecount')
|
||||
call assert_true(line('$') > g:linecount)
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
|
||||
" Uncomment this to see what happens, output is in src/testdir/channellog.
|
||||
|
||||
@@ -768,6 +768,12 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1916,
|
||||
/**/
|
||||
1915,
|
||||
/**/
|
||||
1914,
|
||||
/**/
|
||||
1913,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user