To: vim_dev@googlegroups.com Subject: Patch 8.2.4806 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4806 Problem: A mapping using does not start Select mode. Solution: When checking for starting select mode with the mouse also do this when there is typeahead. (closes #10249) Files: src/normal.c *** ../vim-8.2.4805/src/normal.c 2022-04-09 21:13:47.177970155 +0100 --- src/normal.c 2022-04-22 21:13:25.445453017 +0100 *************** *** 5527,5538 **** /* * Start Select mode, if "c" is in 'selectmode' and not in a mapping or menu. */ void may_start_select(int c) { ! VIsual_select = (stuff_empty() && typebuf_typed() ! && (vim_strchr(p_slm, c) != NULL)); } /* --- 5527,5539 ---- /* * Start Select mode, if "c" is in 'selectmode' and not in a mapping or menu. + * When "c" is 'o' (checking for "mouse") then also when mapped. */ void may_start_select(int c) { ! VIsual_select = (c == 'o' || (stuff_empty() && typebuf_typed())) ! && vim_strchr(p_slm, c) != NULL; } /* *** ../vim-8.2.4805/src/version.c 2022-04-22 20:06:55.856991658 +0100 --- src/version.c 2022-04-22 21:17:59.593213885 +0100 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4806, /**/ -- Everyone has a photographic memory. Some don't have film. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///