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