Skip to content

Commit 0e954ac

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents cef9e23 + 71fb0c1 commit 0e954ac

15 files changed

+367
-313
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ src/testdir/dostmp/*
7878
src/testdir/messages
7979
src/testdir/viminfo
8080
src/memfile_test
81+
src/json_test
8182

8283
# From MacVim
8384
.*.swp

src/eval.c

+3
Original file line numberDiff line numberDiff line change
@@ -11368,7 +11368,10 @@ f_feedkeys(typval_T *argvars, typval_T *rettv UNUSED)
1136811368

1136911369
/* Avoid a 1 second delay when the keys start Insert mode. */
1137011370
msg_scroll = FALSE;
11371+
11372+
++ex_normal_busy;
1137111373
exec_normal(TRUE);
11374+
--ex_normal_busy;
1137211375
msg_scroll |= save_msg_scroll;
1137311376
}
1137411377
}

src/ex_cmds2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3449,7 +3449,7 @@ add_pack_plugin(char_u *fname, void *cookie)
34493449

34503450
if (load_files)
34513451
{
3452-
static char *plugpat = "%s/plugin/*.vim";
3452+
static char *plugpat = "%s/plugin/**/*.vim";
34533453
static char *ftpat = "%s/ftdetect/*.vim";
34543454
int len;
34553455
char_u *pat;

src/ex_docmd.c

+1
Original file line numberDiff line numberDiff line change
@@ -10067,6 +10067,7 @@ ex_stopinsert(exarg_T *eap UNUSED)
1006710067
{
1006810068
restart_edit = 0;
1006910069
stop_insert_mode = TRUE;
10070+
clearmode();
1007010071
}
1007110072

1007210073
/*

src/gui_w32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,7 @@ gui_mch_wait_for_chars(int wtime)
22182218
parse_queued_messages();
22192219

22202220
if (pPeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)
2221-
|| MsgWaitForMultipleObjects(0, NULL, FALSE, 100, QS_ALLEVENTS)
2221+
|| MsgWaitForMultipleObjects(0, NULL, FALSE, 100, QS_ALLINPUT)
22222222
!= WAIT_TIMEOUT)
22232223
break;
22242224
}

src/if_perl.xs

+10-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#ifdef __GNUC__
5353
# pragma GCC diagnostic push
5454
# pragma GCC diagnostic ignored "-Wunused-variable"
55-
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
5655
#endif
5756

5857
#include <EXTERN.h>
@@ -307,16 +306,18 @@ static void (*perl_free)(PerlInterpreter*);
307306
static int (*perl_run)(PerlInterpreter*);
308307
static int (*perl_parse)(PerlInterpreter*, XSINIT_t, int, char**, char**);
309308
static void* (*Perl_get_context)(void);
310-
static void (*Perl_croak)(pTHX_ const char*, ...);
309+
static void (*Perl_croak)(pTHX_ const char*, ...) __attribute__noreturn__;
311310
#ifdef PERL5101_OR_LATER
312311
/* Perl-5.18 has a different Perl_croak_xs_usage signature. */
313312
# if (PERL_REVISION == 5) && (PERL_VERSION >= 18)
314-
static void (*Perl_croak_xs_usage)(const CV *const, const char *const params);
313+
static void (*Perl_croak_xs_usage)(const CV *const, const char *const params)
314+
__attribute__noreturn__;
315315
# else
316-
static void (*Perl_croak_xs_usage)(pTHX_ const CV *const, const char *const params);
316+
static void (*Perl_croak_xs_usage)(pTHX_ const CV *const, const char *const params)
317+
__attribute__noreturn__;
317318
# endif
318319
#endif
319-
static void (*Perl_croak_nocontext)(const char*, ...);
320+
static void (*Perl_croak_nocontext)(const char*, ...) __attribute__noreturn__;
320321
static I32 (*Perl_dowantarray)(pTHX);
321322
static void (*Perl_free_tmps)(pTHX);
322323
static HV* (*Perl_gv_stashpv)(pTHX_ const char*, I32);
@@ -591,7 +592,9 @@ static struct {
591592
* "perl\lib\CORE\inline.h", after Perl_sv_free2 is defined.
592593
* The linker won't complain about undefined __impl_Perl_sv_free2. */
593594
#if (PERL_REVISION == 5) && (PERL_VERSION >= 18)
595+
# define PL_memory_wrap "panic: memory wrap" /* Dummy */
594596
# include <inline.h>
597+
# undef PL_memory_wrap
595598
#endif
596599

597600
/*
@@ -1516,7 +1519,8 @@ SetHeight(win, height)
15161519
curwin = savewin;
15171520

15181521
void
1519-
Cursor(VIWIN win, ...)
1522+
Cursor(win, ...)
1523+
VIWIN win
15201524

15211525
PPCODE:
15221526
if (items == 1)

0 commit comments

Comments
 (0)