Patch 7.4.573 (after 7.4.569)
Problem:    Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat)
Solution:   Call get_real_state() instead of using State directly.
Files:      src/ui.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok


*** ../vim-7.4.572/src/ui.c     2015-01-14 12:44:38.407422077 +0100
--- src/ui.c    2015-01-14 16:06:09.283985531 +0100
***************
*** 180,186 ****
  
        /* ... there is no need for CTRL-C to interrupt something, don't let
         * it set got_int when it was mapped. */
!       if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & State)
            ctrl_c_interrupts = FALSE;
      }
  
--- 180,186 ----
  
        /* ... there is no need for CTRL-C to interrupt something, don't let
         * it set got_int when it was mapped. */
!       if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & get_real_state())
            ctrl_c_interrupts = FALSE;
      }
  
*** ../vim-7.4.572/src/testdir/test_mapping.in  2015-01-14 12:44:38.407422077 
+0100
--- src/testdir/test_mapping.in 2015-01-14 16:01:45.734831292 +0100
***************
*** 8,14 ****
  :inoreab чкпр   vim
  GAчкпр 
   
! :" mapping of ctrl-c in insert mode
  :set cpo-=< cpo-=k
  :inoremap <c-c> <ctrl-c>
  :cnoremap <c-c> dummy
--- 8,14 ----
  :inoreab чкпр   vim
  GAчкпр 
   
! :" mapping of ctrl-c in Insert mode
  :set cpo-=< cpo-=k
  :inoremap <c-c> <ctrl-c>
  :cnoremap <c-c> dummy
***************
*** 16,24 ****
  GA
  TEST2: CTRL-C | A|
   
! :nunmap <c-c>
! 
! : " langmap should not get remapped in insert mode
  :inoremap { FAIL_ilangmap
  :set langmap=+{ langnoremap
  o+ 
--- 16,30 ----
  GA
  TEST2: CTRL-C | A|
   
! :unmap <c-c>
! :unmap! <c-c>
! :"
! :" mapping of ctrl-c in Visual mode
! :vnoremap <c-c> :<C-u>$put ='vmap works'
! GV 
! :vunmap <c-c>
! :"
! :" langmap should not get remapped in insert mode
  :inoremap { FAIL_ilangmap
  :set langmap=+{ langnoremap
  o+ 
*** ../vim-7.4.572/src/testdir/test_mapping.ok  2015-01-14 12:44:38.407422077 
+0100
--- src/testdir/test_mapping.ok 2015-01-14 15:58:41.092824454 +0100
***************
*** 2,6 ****
--- 2,7 ----
  vim
  TEST2: CTRL-C |<ctrl-c>A|
  
+ vmap works
  +
  +
*** ../vim-7.4.572/src/version.c        2015-01-14 15:47:33.076036876 +0100
--- src/version.c       2015-01-14 15:59:40.408184237 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     573,
  /**/

-- 
>From "know your smileys":
 ;-0    Can't find shift key
 ,-9    Kann Umschalttaste nicht finden

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui