@@ -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 *
18801881vim_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" },
0 commit comments