summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-12-11 14:55:01 +0100
committerBram Moolenaar <bram@vim.org>2013-12-11 14:55:01 +0100
commit0e5e09eb27aa8de10e35144669c8a97a5dda7dec (patch)
treea9577a247a797137291a87c3bac97136968b934f
parent5d3e018336add4dc22fa8be096525733780a55e4 (diff)
downloadvim-0e5e09eb27aa8de10e35144669c8a97a5dda7dec.tar.gz
updated for version 7.4.116v7.4.116v7-4-116
Problem: When a mapping starts with a space, the typed space does not show up for 'showcmd'. Solution: Show "<20>". (Brook Hong)
-rw-r--r--src/normal.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 013fdcee..f76aeee3 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -4021,6 +4021,8 @@ add_to_showcmd(c)
#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;
diff --git a/src/version.c b/src/version.c
index a69488f1..a44d9dd8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 116,
+/**/
115,
/**/
114,