| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.260 |
| 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.3.260 |
| Problem: CursorHold triggers on an incomplete mapping. (Will Gray) |
| Solution: Don't trigger CursorHold when there is typeahead. |
| Files: src/fileio.c |
| |
| |
| |
| |
| |
| *** 9044,9050 **** |
| { |
| int state; |
| |
| ! if (!did_cursorhold && has_cursorhold() && !Recording |
| #ifdef FEAT_INS_EXPAND |
| && !ins_compl_active() |
| #endif |
| --- 9044,9053 ---- |
| { |
| int state; |
| |
| ! if (!did_cursorhold |
| ! && has_cursorhold() |
| ! && !Recording |
| ! && typebuf.tb_len == 0 |
| #ifdef FEAT_INS_EXPAND |
| && !ins_compl_active() |
| #endif |
| |
| *** 9935,9940 **** |
| --- 9938,9945 ---- |
| if ((c == ';' || c == '>') && match == FALSE) |
| { |
| *pattern = NUL; /* Terminate the string */ |
| + /* TODO: match with 'filetype' of buffer that "fname" comes |
| + * from. */ |
| match = mch_check_filetype(fname, type_start); |
| *pattern = c; /* Restore the terminator */ |
| type_start = pattern + 1; |
| |
| |
| |
| *** 711,712 **** |
| --- 711,714 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 260, |
| /**/ |
| |
| -- |
| LAUNCELOT: At last! A call! A cry of distress ... |
| (he draws his sword, and turns to CONCORDE) |
| Concorde! Brave, Concorde ... you shall not have died in vain! |
| CONCORDE: I'm not quite dead, sir ... |
| "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD |
| |
| /// 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 /// |