dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.116
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.116
dcaee6
Problem:    When a mapping starts with a space, the typed space does not show
dcaee6
	    up for 'showcmd'.
dcaee6
Solution:   Show "<20>". (Brook Hong)
dcaee6
Files:	    src/normal.c
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.115/src/normal.c	2013-11-28 19:27:18.000000000 +0100
dcaee6
--- src/normal.c	2013-12-07 14:30:29.000000000 +0100
dcaee6
***************
dcaee6
*** 4021,4026 ****
dcaee6
--- 4021,4028 ----
dcaee6
  #endif
dcaee6
  
dcaee6
      p = transchar(c);
dcaee6
+     if (*p == ' ')
dcaee6
+ 	STRCPY(p, "<20>");
dcaee6
      old_len = (int)STRLEN(showcmd_buf);
dcaee6
      extra_len = (int)STRLEN(p);
dcaee6
      overflow = old_len + extra_len - SHOWCMD_COLS;
dcaee6
*** ../vim-7.4.115/src/version.c	2013-12-11 13:21:44.000000000 +0100
dcaee6
--- src/version.c	2013-12-11 14:16:58.000000000 +0100
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     116,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
Bumper sticker: Honk if you love peace and quiet.
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///