| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.573 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| 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 |
| |
| |
| |
| |
| |
| *** 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; |
| } |
| |
| |
| |
| |
| *** 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+ |
| |
| |
| |
| *** 2,6 **** |
| --- 2,7 ---- |
| vim |
| TEST2: CTRL-C |<ctrl-c>A| |
| |
| + vmap works |
| + |
| + |
| |
| |
| |
| *** 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 -- Bram@Moolenaar.net -- 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 /// |