summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-23 19:19:58 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-23 19:19:58 +0100
commit21a83bd53d1fe21c780316c40fdc14d49167d08b (patch)
tree0686c4944e707d4bbe493e9e7cd99617f7fd8701 /src/misc2.c
parenteba13e4ea28f133ff65f6b426428f49a9bd711b0 (diff)
downloadvim-git-21a83bd53d1fe21c780316c40fdc14d49167d08b.tar.gz
patch 8.2.2546: typo in mouse key namev8.2.2546
Problem: Typo in mouse key name. Solution: Fix the typo. (issue #4725)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 5a6d86352..70a19c127 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1872,9 +1872,10 @@ vim_strnicmp(char *s1, char *s2, size_t len)
#endif
/*
- * Version of strchr() and strrchr() that handle unsigned char strings
- * with characters from 128 to 255 correctly. It also doesn't return a
- * pointer to the NUL at the end of the string.
+ * Search for first occurrence of "c" in "string".
+ * Version of strchr() that handles unsigned char strings with characters from
+ * 128 to 255 correctly. It also doesn't return a pointer to the NUL at the
+ * end of the string.
*/
char_u *
vim_strchr(char_u *string, int c)
@@ -1949,6 +1950,9 @@ vim_strbyte(char_u *string, int c)
/*
* Search for last occurrence of "c" in "string".
+ * Version of strrchr() that handles unsigned char strings with characters from
+ * 128 to 255 correctly. It also doesn't return a pointer to the NUL at the
+ * end of the string.
* Return NULL if not found.
* Does not handle multi-byte char for "c"!
*/
@@ -2497,7 +2501,7 @@ static struct key_name_entry
{K_URXVT_MOUSE, (char_u *)"UrxvtMouse"},
#endif
{K_SGR_MOUSE, (char_u *)"SgrMouse"},
- {K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelelase"},
+ {K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelease"},
{K_LEFTMOUSE, (char_u *)"LeftMouse"},
{K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"},
{K_LEFTDRAG, (char_u *)"LeftDrag"},