diff src/normal.c @ 5535:40aff213baff v7.4.116

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)
author Bram Moolenaar <bram@vim.org>
date Wed, 11 Dec 2013 14:55:01 +0100
parents 6e54d1b3408c
children d289f2167d70
line wrap: on
line diff
--- 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;