| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.468 |
| 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.468 |
| Problem: Issue 26: CTRL-C does not interrupt after it was mapped and then |
| unmapped. |
| Solution: Reset mapped_ctrl_c. (Christian Brabandt) |
| Files: src/getchar.c |
| |
| |
| |
| |
| |
| *** 3707,3712 **** |
| --- 3707,3715 ---- |
| { |
| if (!did_it) |
| retval = 2; /* no match */ |
| + else if (*keys == Ctrl_C) |
| + /* If CTRL-C has been unmapped, reuse it for Interrupting. */ |
| + mapped_ctrl_c = FALSE; |
| goto theend; |
| } |
| |
| |
| *** 3739,3745 **** |
| goto theend; |
| } |
| |
| ! /* If CTRL-C has been mapped, don't always use it for Interrupting */ |
| if (*keys == Ctrl_C) |
| mapped_ctrl_c = TRUE; |
| |
| --- 3742,3748 ---- |
| goto theend; |
| } |
| |
| ! /* If CTRL-C has been mapped, don't always use it for Interrupting. */ |
| if (*keys == Ctrl_C) |
| mapped_ctrl_c = TRUE; |
| |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 468, |
| /**/ |
| |
| -- |
| Marriage isn't a word. It's a sentence. |
| |
| /// 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 /// |