changeset 24008:51cccde1b1aa v8.2.2546

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 patch 8.2.2546: typo in mouse key name Problem: Typo in mouse key name. Solution: Fix the typo. (issue https://github.com/vim/vim/issues/4725)
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Feb 2021 19:30:03 +0100
parents e1a63a125933
children 97041a388b6e
files src/misc2.c src/version.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1872,9 +1872,10 @@ vim_strnicmp(char *s1, char *s2, size_t 
 #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"},
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2546,
+/**/
     2545,
 /**/
     2544,