0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.0.1004: matchstrpos() without a match returns too many items

Problem:    Matchstrpos() without a match returns too many items.
Solution:   Also remove the second item when the position is beyond the end of
            the string. (Hirohito Higashi)  Use an enum for the type.
This commit is contained in:
Bram Moolenaar
2017-08-27 13:51:01 +02:00
parent e85928a324
commit 8d9f0ef5c6
3 changed files with 28 additions and 23 deletions

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1004,
/**/
1003,
/**/