mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	updated for version 7.3.982
Problem:    In the new regexp engine \p does not work on multi-byte
            characters.
Solution:   Don't point to an integer but the characters.
			
			
This commit is contained in:
		| @@ -2931,7 +2931,7 @@ again: | |||||||
| 	} | 	} | ||||||
| 	if (c == NUL) | 	if (c == NUL) | ||||||
| 	    n = 0; | 	    n = 0; | ||||||
| 	cc = (char_u *)&c; | 	cc = reginput; | ||||||
|  |  | ||||||
| 	/* swap lists */ | 	/* swap lists */ | ||||||
| 	thislist = &list[flag]; | 	thislist = &list[flag]; | ||||||
| @@ -2960,7 +2960,7 @@ again: | |||||||
| 	    if (neglist->n > 0) | 	    if (neglist->n > 0) | ||||||
| 	    { | 	    { | ||||||
| 		t = &neglist->t[0]; | 		t = &neglist->t[0]; | ||||||
| 		neglist->n --; | 		neglist->n--; | ||||||
| 		i--; | 		i--; | ||||||
| 	    } | 	    } | ||||||
| 	    else | 	    else | ||||||
|   | |||||||
| @@ -25,6 +25,9 @@ STARTTEST | |||||||
| :call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม']) | :call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม']) | ||||||
| :call add(tl, ['[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna']) | :call add(tl, ['[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna']) | ||||||
|  |  | ||||||
|  | :" this is not a normal "i" but 0xec | ||||||
|  | :call add(tl, ['\p\+', 'ìa', 'ìa']) | ||||||
|  |  | ||||||
| :"""" Run the tests | :"""" Run the tests | ||||||
|  |  | ||||||
| :" | :" | ||||||
|   | |||||||
| @@ -4,3 +4,4 @@ OK - [[=a=]]\+ | |||||||
| OK - [^ม ]\+ | OK - [^ม ]\+ | ||||||
| OK -  [^ ]\+ | OK -  [^ ]\+ | ||||||
| OK - [ม[:alpha:][=a=]]\+ | OK - [ม[:alpha:][=a=]]\+ | ||||||
|  | OK - \p\+ | ||||||
|   | |||||||
| @@ -728,6 +728,8 @@ static char *(features[]) = | |||||||
|  |  | ||||||
| static int included_patches[] = | static int included_patches[] = | ||||||
| {   /* Add new patch number below this line */ | {   /* Add new patch number below this line */ | ||||||
|  | /**/ | ||||||
|  |     982, | ||||||
| /**/ | /**/ | ||||||
|     981, |     981, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user