Skip to content

Commit 21a83bd

Browse files
committed
patch 8.2.2546: typo in mouse key name
Problem: Typo in mouse key name. Solution: Fix the typo. (issue #4725)
1 parent eba13e4 commit 21a83bd

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/misc2.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,9 +1872,10 @@ vim_strnicmp(char *s1, char *s2, size_t len)
18721872
#endif
18731873

18741874
/*
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.
18781879
*/
18791880
char_u *
18801881
vim_strchr(char_u *string, int c)
@@ -1949,6 +1950,9 @@ vim_strbyte(char_u *string, int c)
19491950

19501951
/*
19511952
* 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.
19521956
* Return NULL if not found.
19531957
* Does not handle multi-byte char for "c"!
19541958
*/
@@ -2497,7 +2501,7 @@ static struct key_name_entry
24972501
{K_URXVT_MOUSE, (char_u *)"UrxvtMouse"},
24982502
#endif
24992503
{K_SGR_MOUSE, (char_u *)"SgrMouse"},
2500-
{K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelelase"},
2504+
{K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelease"},
25012505
{K_LEFTMOUSE, (char_u *)"LeftMouse"},
25022506
{K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"},
25032507
{K_LEFTDRAG, (char_u *)"LeftDrag"},

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2546,
753755
/**/
754756
2545,
755757
/**/

0 commit comments

Comments
 (0)