To: vim_dev@googlegroups.com Subject: Patch 8.2.3966 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3966 Problem: When using feedkeys() abbreviations may be blocked. Solution: Reset tb_no_abbr_cnt when running out of characters. (closes #9448) Files: src/getchar.c, src/testdir/test_feedkeys.vim *** ../vim-8.2.3965/src/getchar.c 2021-12-31 18:49:39.149303426 +0000 --- src/getchar.c 2022-01-01 12:31:28.787037565 +0000 *************** *** 3239,3244 **** --- 3239,3247 ---- if (pending_exmode_active) exmode_active = EXMODE_NORMAL; + // no chars to block abbreviation for + typebuf.tb_no_abbr_cnt = 0; + break; } *** ../vim-8.2.3965/src/testdir/test_feedkeys.vim 2020-08-12 17:50:31.875655822 +0100 --- src/testdir/test_feedkeys.vim 2022-01-01 12:41:18.050214368 +0000 *************** *** 13,16 **** --- 13,26 ---- quit! endfunc + func Test_feedkeys_with_abbreviation() + new + inoreabbrev trigger value + call feedkeys("atrigger ", 'x') + call feedkeys("atrigger ", 'x') + call assert_equal('value value ', getline(1)) + bwipe! + iunabbrev trigger + endfunc + " vim: shiftwidth=2 sts=2 expandtab *** ../vim-8.2.3965/src/version.c 2022-01-01 12:16:56.440066967 +0000 --- src/version.c 2022-01-01 12:32:52.274949642 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3966, /**/ -- If Microsoft would build a car... ... the oil, water temperature, and alternator warning lights would all be replaced by a single "General Protection Fault" warning light. /// 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 ///