To: vim_dev@googlegroups.com Subject: Patch 8.2.2546 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2546 Problem: Typo in mouse key name. Solution: Fix the typo. (issue #4725) Files: src/misc2.c *** ../vim-8.2.2545/src/misc2.c 2021-01-21 13:36:40.092474151 +0100 --- src/misc2.c 2021-02-23 19:11:56.624864736 +0100 *************** *** 1872,1880 **** #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. */ char_u * vim_strchr(char_u *string, int c) --- 1872,1881 ---- #endif /* ! * 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,1954 **** --- 1950,1958 ---- /* * 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,2503 **** {K_URXVT_MOUSE, (char_u *)"UrxvtMouse"}, #endif {K_SGR_MOUSE, (char_u *)"SgrMouse"}, ! {K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelelase"}, {K_LEFTMOUSE, (char_u *)"LeftMouse"}, {K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"}, {K_LEFTDRAG, (char_u *)"LeftDrag"}, --- 2501,2507 ---- {K_URXVT_MOUSE, (char_u *)"UrxvtMouse"}, #endif {K_SGR_MOUSE, (char_u *)"SgrMouse"}, ! {K_SGR_MOUSERELEASE, (char_u *)"SgrMouseRelease"}, {K_LEFTMOUSE, (char_u *)"LeftMouse"}, {K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"}, {K_LEFTDRAG, (char_u *)"LeftDrag"}, *** ../vim-8.2.2545/src/version.c 2021-02-23 17:47:20.078181103 +0100 --- src/version.c 2021-02-23 19:19:18.670991774 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2546, /**/ -- LAUNCELOT: Isn't there a St. Aaaaarrrrrrggghhh's in Cornwall? ARTHUR: No, that's Saint Ives. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///