home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.573 < prev    next >
Encoding:
Internet Message Format  |  2015-01-14  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.573
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.573 (after 7.4.569)
  11. Problem:    Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat)
  12. Solution:   Call get_real_state() instead of using State directly.
  13. Files:        src/ui.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok
  14.  
  15.  
  16. *** ../vim-7.4.572/src/ui.c    2015-01-14 12:44:38.407422077 +0100
  17. --- src/ui.c    2015-01-14 16:06:09.283985531 +0100
  18. ***************
  19. *** 180,186 ****
  20.   
  21.       /* ... there is no need for CTRL-C to interrupt something, don't let
  22.        * it set got_int when it was mapped. */
  23. !     if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & State)
  24.           ctrl_c_interrupts = FALSE;
  25.       }
  26.   
  27. --- 180,186 ----
  28.   
  29.       /* ... there is no need for CTRL-C to interrupt something, don't let
  30.        * it set got_int when it was mapped. */
  31. !     if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & get_real_state())
  32.           ctrl_c_interrupts = FALSE;
  33.       }
  34.   
  35. *** ../vim-7.4.572/src/testdir/test_mapping.in    2015-01-14 12:44:38.407422077 +0100
  36. --- src/testdir/test_mapping.in    2015-01-14 16:01:45.734831292 +0100
  37. ***************
  38. *** 8,14 ****
  39.   :inoreab ╤ç╨║╨┐╤Ç   vim
  40.   GA╤ç╨║╨┐╤Ç 
  41.   
  42. ! :" mapping of ctrl-c in insert mode
  43.   :set cpo-=< cpo-=k
  44.   :inoremap <c-c> <ctrl-c>
  45.   :cnoremap <c-c> dummy
  46. --- 8,14 ----
  47.   :inoreab ╤ç╨║╨┐╤Ç   vim
  48.   GA╤ç╨║╨┐╤Ç 
  49.   
  50. ! :" mapping of ctrl-c in Insert mode
  51.   :set cpo-=< cpo-=k
  52.   :inoremap <c-c> <ctrl-c>
  53.   :cnoremap <c-c> dummy
  54. ***************
  55. *** 16,24 ****
  56.   GA
  57.   TEST2: CTRL-C |A|
  58.   
  59. ! :nunmap <c-c>
  60. ! : " langmap should not get remapped in insert mode
  61.   :inoremap { FAIL_ilangmap
  62.   :set langmap=+{ langnoremap
  63.   o+
  64. --- 16,30 ----
  65.   GA
  66.   TEST2: CTRL-C |A|
  67.   
  68. ! :unmap <c-c>
  69. ! :unmap! <c-c>
  70. ! :"
  71. ! :" mapping of ctrl-c in Visual mode
  72. ! :vnoremap <c-c> :<C-u>$put ='vmap works'
  73. ! GV
  74. ! :vunmap <c-c>
  75. ! :"
  76. ! :" langmap should not get remapped in insert mode
  77.   :inoremap { FAIL_ilangmap
  78.   :set langmap=+{ langnoremap
  79.   o+
  80. *** ../vim-7.4.572/src/testdir/test_mapping.ok    2015-01-14 12:44:38.407422077 +0100
  81. --- src/testdir/test_mapping.ok    2015-01-14 15:58:41.092824454 +0100
  82. ***************
  83. *** 2,6 ****
  84. --- 2,7 ----
  85.   vim
  86.   TEST2: CTRL-C |<ctrl-c>A|
  87.   
  88. + vmap works
  89.   +
  90.   +
  91. *** ../vim-7.4.572/src/version.c    2015-01-14 15:47:33.076036876 +0100
  92. --- src/version.c    2015-01-14 15:59:40.408184237 +0100
  93. ***************
  94. *** 743,744 ****
  95. --- 743,746 ----
  96.   {   /* Add new patch number below this line */
  97. + /**/
  98. +     573,
  99.   /**/
  100.  
  101. -- 
  102. From "know your smileys":
  103.  ;-0    Can't find shift key
  104.  ,-9    Kann Umschalttaste nicht finden
  105.  
  106.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  107. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  108. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  109.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  110.