| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.116 |
| 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.116 |
| Problem: When a mapping starts with a space, the typed space does not show |
| up for 'showcmd'. |
| Solution: Show "<20>". (Brook Hong) |
| Files: src/normal.c |
| |
| |
| |
| |
| |
| *** 4021,4026 **** |
| --- 4021,4028 ---- |
| #endif |
| |
| p = transchar(c); |
| + if (*p == ' ') |
| + STRCPY(p, "<20>"); |
| old_len = (int)STRLEN(showcmd_buf); |
| extra_len = (int)STRLEN(p); |
| overflow = old_len + extra_len - SHOWCMD_COLS; |
| |
| |
| |
| *** 740,741 **** |
| --- 740,743 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 116, |
| /**/ |
| |
| -- |
| Bumper sticker: Honk if you love peace and quiet. |
| |
| /// 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 /// |