Skip to content

Commit bdaf4c0

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents dfdc115 + a83fe75 commit bdaf4c0

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

src/edit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7343,7 +7343,9 @@ oneleft(void)
73437343
#ifdef FEAT_VIRTUALEDIT
73447344
if (virtual_active())
73457345
{
7346+
# ifdef FEAT_LINEBREAK
73467347
int width;
7348+
# endif
73477349
int v = getviscol();
73487350

73497351
if (v == 0)

src/ex_getln.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ getcmdline(
15001500
if (c != NUL)
15011501
{
15021502
if (c == firstc || vim_strchr((char_u *)(
1503-
p_magic ? "\\^$.*[" : "\\^$"), c)
1503+
p_magic ? "\\~^$.*[" : "\\^$"), c)
15041504
!= NULL)
15051505
{
15061506
/* put a backslash before special

src/term.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,9 @@ out_str_cf(char_u *s)
25302530
{
25312531
if (s != NULL && *s)
25322532
{
2533+
#ifdef HAVE_TGETENT
25332534
char_u *p;
2535+
#endif
25342536

25352537
#ifdef FEAT_GUI
25362538
/* Don't use tputs() when GUI is used, ncurses crashes. */
@@ -2555,7 +2557,7 @@ out_str_cf(char_u *s)
25552557
tputs((char *)p, 1, TPUTSFUNCAST out_char_nf);
25562558
*s = save_c;
25572559
out_flush();
2558-
#ifdef ELAPSED_FUNC
2560+
# ifdef ELAPSED_FUNC
25592561
/* Only sleep here if we can limit this happening in
25602562
* vim_beep(). */
25612563
p = vim_strchr(s, '>');
@@ -2569,10 +2571,10 @@ out_str_cf(char_u *s)
25692571
++p;
25702572
do_sleep(duration);
25712573
}
2572-
#else
2574+
# else
25732575
/* Rely on the terminal library to sleep. */
25742576
p = s;
2575-
#endif
2577+
# endif
25762578
break;
25772579
}
25782580
}

src/testdir/test_search.vim

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,23 @@ func Test_searchc()
302302
exe "norm 0t\u93cf"
303303
bw!
304304
endfunc
305+
306+
func Test_search_cmdline3()
307+
if !exists('+incsearch')
308+
return
309+
endif
310+
" need to disable char_avail,
311+
" so that expansion of commandline works
312+
call test_override("char_avail", 1)
313+
new
314+
call setline(1, [' 1', ' 2 the~e', ' 3 the theother'])
315+
set incsearch
316+
1
317+
" first match
318+
call feedkeys("/the\<c-l>\<cr>", 'tx')
319+
call assert_equal(' 2 the~e', getline('.'))
320+
" clean up
321+
set noincsearch
322+
call test_override("char_avail", 0)
323+
bw!
324+
endfunc

src/version.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,12 @@ static char *(features[]) =
779779

780780
static int included_patches[] =
781781
{ /* Add new patch number below this line */
782+
/**/
783+
691,
784+
/**/
785+
690,
786+
/**/
787+
689,
782788
/**/
783789
688,
784790
/**/

0 commit comments

Comments
 (0)