Patch 8.2.2062
Problem:    <Cmd> does not handle CTRL-V.
Solution:   Call get_literal() after encountering CTRL-V. (closes #7387)
Files:      src/getchar.c, src/testdir/test_mapping.vim


*** ../vim-8.2.2061/src/getchar.c       2020-11-18 11:34:30.182191403 +0100
--- src/getchar.c       2020-11-28 14:43:00.850323276 +0100
***************
*** 3675,3680 ****
--- 3675,3688 ----
            }
            c1 = TO_SPECIAL(c1, c2);
        }
+       if (c1 == Ctrl_V)
+       {
+           // CTRL-V is followed by octal, hex or other characters, reverses
+           // what AppendToRedobuffLit() does.
+           no_reduce_keys = TRUE;  //  don't merge modifyOtherKeys
+           c1 = get_literal();
+           no_reduce_keys = FALSE;
+       }
  
        if (got_int)
            aborted = TRUE;
*** ../vim-8.2.2061/src/testdir/test_mapping.vim        2020-11-18 
11:34:30.182191403 +0100
--- src/testdir/test_mapping.vim        2020-11-28 14:41:13.746719009 +0100
***************
*** 972,977 ****
--- 972,982 ----
    unmap <F3>
    unmap! <F3>
    %bw!
+ 
+   " command line ending in "0" is handled without errors
+   onoremap ix <cmd>eval 0<cr>
+   call feedkeys('dix.', 'xt')
+   ounmap ix
  endfunc
  
  " text object enters visual mode
*** ../vim-8.2.2061/src/version.c       2020-11-27 20:54:56.609430538 +0100
--- src/version.c       2020-11-28 14:38:10.487392916 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2062,
  /**/

-- 
WOMAN:   King of the who?
ARTHUR:  The Britons.
WOMAN:   Who are the Britons?
ARTHUR:  Well, we all are. we're all Britons and I am your king.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
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/202011281344.0ASDi2CC2996199%40masaka.moolenaar.net.

Raspunde prin e-mail lui