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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220101124325.45E0F1C0A5B%40moolenaar.net.

Raspunde prin e-mail lui