• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisión51cccde1b1aa63e916152b3411ba149d29968a9c (tree)
Tiempo2021-02-24 03:30:03
AutorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

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)

Cambiar Resumen

Diferencia incremental

diff -r e1a63a125933 -r 51cccde1b1aa src/misc2.c
--- a/src/misc2.c Tue Feb 23 18:00:04 2021 +0100
+++ b/src/misc2.c Tue Feb 23 19:30:03 2021 +0100
@@ -1872,9 +1872,10 @@
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 @@
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 @@
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"},
diff -r e1a63a125933 -r 51cccde1b1aa src/version.c
--- a/src/version.c Tue Feb 23 18:00:04 2021 +0100
+++ b/src/version.c Tue Feb 23 19:30:03 2021 +0100
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 2546,
755+/**/
754756 2545,
755757 /**/
756758 2544,
Show on old repository browser