commit | 7ba0741451d8eea497fba07ca2bbf6fae107a6a6 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Dec 11 14:55:01 2013 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Dec 11 14:55:01 2013 +0100 |
tree | 34e70b634b7ddedd35b33750f7b222b5e69549b9 | |
parent | b011af969652f6be0775ba8dcd54aac4dcb57cdb [diff] [blame] |
updated for version 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)
diff --git a/src/normal.c b/src/normal.c index 013fdce..f76aeee 100644 --- a/src/normal.c +++ b/src/normal.c
@@ -4021,6 +4021,8 @@ #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;