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) | ||||
| 	    n = 0; | ||||
| 	cc = (char_u *)&c; | ||||
| 	cc = reginput; | ||||
|  | ||||
| 	/* swap lists */ | ||||
| 	thislist = &list[flag]; | ||||
|   | ||||
| @@ -25,6 +25,9 @@ STARTTEST | ||||
| :call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม']) | ||||
| :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 | ||||
|  | ||||
| :" | ||||
|   | ||||
| @@ -4,3 +4,4 @@ OK - [[=a=]]\+ | ||||
| OK - [^ม ]\+ | ||||
| OK -  [^ ]\+ | ||||
| OK - [ม[:alpha:][=a=]]\+ | ||||
| OK - \p\+ | ||||
|   | ||||
| @@ -728,6 +728,8 @@ static char *(features[]) = | ||||
|  | ||||
| static int included_patches[] = | ||||
| {   /* Add new patch number below this line */ | ||||
| /**/ | ||||
|     982, | ||||
| /**/ | ||||
|     981, | ||||
| /**/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user