Merge remote-tracking branch 'vim/master'

This commit is contained in:
Kazuki Sakamoto
2018-04-26 21:27:12 -07:00
3 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -10242,9 +10242,9 @@ ins_eol(int c)
int i;
if (echeck_abbr(c + ABBR_OFF))
return FALSE;
return OK;
if (stop_arrow() == FAIL)
return TRUE;
return FAIL;
undisplay_dollar();
/*
+16
View File
@@ -198,3 +198,19 @@ func Test_map_timeout()
set timeoutlen&
delfunc ExitInsert
endfunc
func Test_abbreviation_CR()
new
func Eatchar(pat)
let c = nr2char(getchar(0))
return (c =~ a:pat) ? '' : c
endfunc
iabbrev <buffer><silent> ~~7 <c-r>=repeat('~', 7)<CR><c-r>=Eatchar('\s')<cr>
call feedkeys("GA~~7 \<esc>", 'xt')
call assert_equal('~~~~~~~', getline('$'))
%d
call feedkeys("GA~~7\<cr>\<esc>", 'xt')
call assert_equal(['~~~~~~~', ''], getline(1,'$'))
delfunc Eatchar
bw!
endfunc
+2
View File
@@ -776,6 +776,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1766,
/**/
1765,
/**/