Karsten Hopp dfe6be
To: vim_dev@googlegroups.com
Karsten Hopp dfe6be
Subject: Patch 7.4.573
Karsten Hopp dfe6be
Fcc: outbox
Karsten Hopp dfe6be
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp dfe6be
Mime-Version: 1.0
Karsten Hopp dfe6be
Content-Type: text/plain; charset=UTF-8
Karsten Hopp dfe6be
Content-Transfer-Encoding: 8bit
Karsten Hopp dfe6be
------------
Karsten Hopp dfe6be
Karsten Hopp dfe6be
Patch 7.4.573 (after 7.4.569)
Karsten Hopp dfe6be
Problem:    Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat)
Karsten Hopp dfe6be
Solution:   Call get_real_state() instead of using State directly.
Karsten Hopp dfe6be
Files:	    src/ui.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok
Karsten Hopp dfe6be
Karsten Hopp dfe6be
Karsten Hopp dfe6be
*** ../vim-7.4.572/src/ui.c	2015-01-14 12:44:38.407422077 +0100
Karsten Hopp dfe6be
--- src/ui.c	2015-01-14 16:06:09.283985531 +0100
Karsten Hopp dfe6be
***************
Karsten Hopp dfe6be
*** 180,186 ****
Karsten Hopp dfe6be
  
Karsten Hopp dfe6be
  	/* ... there is no need for CTRL-C to interrupt something, don't let
Karsten Hopp dfe6be
  	 * it set got_int when it was mapped. */
Karsten Hopp dfe6be
! 	if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & State)
Karsten Hopp dfe6be
  	    ctrl_c_interrupts = FALSE;
Karsten Hopp dfe6be
      }
Karsten Hopp dfe6be
  
Karsten Hopp dfe6be
--- 180,186 ----
Karsten Hopp dfe6be
  
Karsten Hopp dfe6be
  	/* ... there is no need for CTRL-C to interrupt something, don't let
Karsten Hopp dfe6be
  	 * it set got_int when it was mapped. */
Karsten Hopp dfe6be
! 	if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & get_real_state())
Karsten Hopp dfe6be
  	    ctrl_c_interrupts = FALSE;
Karsten Hopp dfe6be
      }
Karsten Hopp dfe6be
  
Karsten Hopp dfe6be
*** ../vim-7.4.572/src/testdir/test_mapping.in	2015-01-14 12:44:38.407422077 +0100
Karsten Hopp dfe6be
--- src/testdir/test_mapping.in	2015-01-14 16:01:45.734831292 +0100
Karsten Hopp dfe6be
***************
Karsten Hopp dfe6be
*** 8,14 ****
Karsten Hopp dfe6be
  :inoreab чкпр   vim
Karsten Hopp dfe6be
  GAчкпр 
Karsten Hopp dfe6be
  ?
Karsten Hopp dfe6be
! :" mapping of ctrl-c in insert mode
Karsten Hopp dfe6be
  :set cpo-=< cpo-=k
Karsten Hopp dfe6be
  :inoremap <c-c> <ctrl-c>
Karsten Hopp dfe6be
  :cnoremap <c-c> dummy
Karsten Hopp dfe6be
--- 8,14 ----
Karsten Hopp dfe6be
  :inoreab чкпр   vim
Karsten Hopp dfe6be
  GAчкпр 
Karsten Hopp dfe6be
  ?
Karsten Hopp dfe6be
! :" mapping of ctrl-c in Insert mode
Karsten Hopp dfe6be
  :set cpo-=< cpo-=k
Karsten Hopp dfe6be
  :inoremap <c-c> <ctrl-c>
Karsten Hopp dfe6be
  :cnoremap <c-c> dummy
Karsten Hopp dfe6be
***************
Karsten Hopp dfe6be
*** 16,24 ****
Karsten Hopp dfe6be
  GA
Karsten Hopp dfe6be
  TEST2: CTRL-C |?A|
Karsten Hopp dfe6be
  ?
Karsten Hopp dfe6be
! :nunmap <c-c>
Karsten Hopp dfe6be
! 
Karsten Hopp dfe6be
! : " langmap should not get remapped in insert mode
Karsten Hopp dfe6be
  :inoremap { FAIL_ilangmap
Karsten Hopp dfe6be
  :set langmap=+{ langnoremap
Karsten Hopp dfe6be
  o+?
Karsten Hopp dfe6be
--- 16,30 ----
Karsten Hopp dfe6be
  GA
Karsten Hopp dfe6be
  TEST2: CTRL-C |?A|
Karsten Hopp dfe6be
  ?
Karsten Hopp dfe6be
! :unmap <c-c>
Karsten Hopp dfe6be
! :unmap! <c-c>
Karsten Hopp dfe6be
! :"
Karsten Hopp dfe6be
! :" mapping of ctrl-c in Visual mode
Karsten Hopp dfe6be
! :vnoremap <c-c> :<C-u>$put ='vmap works'
Karsten Hopp dfe6be
! GV?
Karsten Hopp dfe6be
! :vunmap <c-c>
Karsten Hopp dfe6be
! :"
Karsten Hopp dfe6be
! :" langmap should not get remapped in insert mode
Karsten Hopp dfe6be
  :inoremap { FAIL_ilangmap
Karsten Hopp dfe6be
  :set langmap=+{ langnoremap
Karsten Hopp dfe6be
  o+?
Karsten Hopp dfe6be
*** ../vim-7.4.572/src/testdir/test_mapping.ok	2015-01-14 12:44:38.407422077 +0100
Karsten Hopp dfe6be
--- src/testdir/test_mapping.ok	2015-01-14 15:58:41.092824454 +0100
Karsten Hopp dfe6be
***************
Karsten Hopp dfe6be
*** 2,6 ****
Karsten Hopp dfe6be
--- 2,7 ----
Karsten Hopp dfe6be
  vim
Karsten Hopp dfe6be
  TEST2: CTRL-C |<ctrl-c>A|
Karsten Hopp dfe6be
  
Karsten Hopp dfe6be
+ vmap works
Karsten Hopp dfe6be
  +
Karsten Hopp dfe6be
  +
Karsten Hopp dfe6be
*** ../vim-7.4.572/src/version.c	2015-01-14 15:47:33.076036876 +0100
Karsten Hopp dfe6be
--- src/version.c	2015-01-14 15:59:40.408184237 +0100
Karsten Hopp dfe6be
***************
Karsten Hopp dfe6be
*** 743,744 ****
Karsten Hopp dfe6be
--- 743,746 ----
Karsten Hopp dfe6be
  {   /* Add new patch number below this line */
Karsten Hopp dfe6be
+ /**/
Karsten Hopp dfe6be
+     573,
Karsten Hopp dfe6be
  /**/
Karsten Hopp dfe6be
Karsten Hopp dfe6be
-- 
Karsten Hopp dfe6be
From "know your smileys":
Karsten Hopp dfe6be
 ;-0	Can't find shift key
Karsten Hopp dfe6be
 ,-9	Kann Umschalttaste nicht finden
Karsten Hopp dfe6be
Karsten Hopp dfe6be
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp dfe6be
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp dfe6be
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp dfe6be
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///