diff --git a/src/search.c b/src/search.c index 677d1735ab..bd607fb4b8 100644 --- a/src/search.c +++ b/src/search.c @@ -3795,7 +3795,7 @@ search_line: break; found = TRUE; aux = p = startp; - if (compl_status_adding()) + if (compl_status_adding() && (int)STRLEN(p) >= ins_compl_len()) { p += ins_compl_len(); if (vim_iswordp(p)) diff --git a/src/version.c b/src/version.c index c741108d90..c74490c3ea 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1751, /**/ 1750, /**/