Mirror of the Vim source from https://github.com/vim/vim
Revision | 51cccde1b1aa63e916152b3411ba149d29968a9c (tree) |
---|---|
Time | 2021-02-24 03:30:03 |
Author | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.2546: typo in mouse key name
Commit: https://github.com/vim/vim/commit/21a83bd53d1fe21c780316c40fdc14d49167d08b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 23 19:19:58 2021 +0100
@@ -1872,9 +1872,10 @@ | ||
1872 | 1872 | #endif |
1873 | 1873 | |
1874 | 1874 | /* |
1875 | - * Version of strchr() and strrchr() that handle unsigned char strings | |
1876 | - * with characters from 128 to 255 correctly. It also doesn't return a | |
1877 | - * pointer to the NUL at the end of the string. | |
1875 | + * Search for first occurrence of "c" in "string". | |
1876 | + * Version of strchr() that handles unsigned char strings with characters from | |
1877 | + * 128 to 255 correctly. It also doesn't return a pointer to the NUL at the | |
1878 | + * end of the string. | |
1878 | 1879 | */ |
1879 | 1880 | char_u * |
1880 | 1881 | vim_strchr(char_u *string, int c) |
@@ -1949,6 +1950,9 @@ | ||
1949 | 1950 | |
1950 | 1951 | /* |
1951 | 1952 | * Search for last occurrence of "c" in "string". |
1953 | + * Version of strrchr() that handles unsigned char strings with characters from | |
1954 | + * 128 to 255 correctly. It also doesn't return a pointer to the NUL at the | |
1955 | + * end of the string. | |
1952 | 1956 | * Return NULL if not found. |
1953 | 1957 | * Does not handle multi-byte char for "c"! |
1954 | 1958 | */ |
@@ -2497,7 +2501,7 @@ | ||
2497 | 2501 | {K_URXVT_MOUSE, (char_u *)"UrxvtMouse"}, |
2498 | 2502 | #endif |
2499 | 2503 | {K_SGR_MOUSE, (char_u *)"SgrMouse"}, |
2500 | - {K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelelase"}, | |
2504 | + {K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelease"}, | |
2501 | 2505 | {K_LEFTMOUSE, (char_u *)"LeftMouse"}, |
2502 | 2506 | {K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"}, |
2503 | 2507 | {K_LEFTDRAG, (char_u *)"LeftDrag"}, |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 2546, | |
755 | +/**/ | |
754 | 756 | 2545, |
755 | 757 | /**/ |
756 | 758 | 2544, |