3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.303
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.303
3ef2ca
Problem:    When using double-width characters the text displayed on the
3ef2ca
	    command line is sometimes truncated.
3ef2ca
Solution:   Reset the string lenght. (Nobuhiro Takasaki)
3ef2ca
Files:	    src/screen.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.302/src/screen.c	2014-05-22 15:51:00.734399594 +0200
3ef2ca
--- src/screen.c	2014-05-22 16:02:24.294385701 +0200
3ef2ca
***************
3ef2ca
*** 6916,6930 ****
3ef2ca
   * a NUL.
3ef2ca
   */
3ef2ca
      void
3ef2ca
! screen_puts_len(text, len, row, col, attr)
3ef2ca
      char_u	*text;
3ef2ca
!     int		len;
3ef2ca
      int		row;
3ef2ca
      int		col;
3ef2ca
      int		attr;
3ef2ca
  {
3ef2ca
      unsigned	off;
3ef2ca
      char_u	*ptr = text;
3ef2ca
      int		c;
3ef2ca
  #ifdef FEAT_MBYTE
3ef2ca
      unsigned	max_off;
3ef2ca
--- 6916,6931 ----
3ef2ca
   * a NUL.
3ef2ca
   */
3ef2ca
      void
3ef2ca
! screen_puts_len(text, textlen, row, col, attr)
3ef2ca
      char_u	*text;
3ef2ca
!     int		textlen;
3ef2ca
      int		row;
3ef2ca
      int		col;
3ef2ca
      int		attr;
3ef2ca
  {
3ef2ca
      unsigned	off;
3ef2ca
      char_u	*ptr = text;
3ef2ca
+     int		len = textlen;
3ef2ca
      int		c;
3ef2ca
  #ifdef FEAT_MBYTE
3ef2ca
      unsigned	max_off;
3ef2ca
***************
3ef2ca
*** 7169,7175 ****
3ef2ca
--- 7170,7180 ----
3ef2ca
  	    col += mbyte_cells;
3ef2ca
  	    ptr += mbyte_blen;
3ef2ca
  	    if (clear_next_cell)
3ef2ca
+ 	    {
3ef2ca
+ 		/* This only happens at the end, display one space next. */
3ef2ca
  		ptr = (char_u *)" ";
3ef2ca
+ 		len = -1;
3ef2ca
+ 	    }
3ef2ca
  	}
3ef2ca
  	else
3ef2ca
  #endif
3ef2ca
*** ../vim-7.4.302/src/version.c	2014-05-22 15:51:00.738399594 +0200
3ef2ca
--- src/version.c	2014-05-22 15:58:15.050390766 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     303,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
hundred-and-one symptoms of being an internet addict:
3ef2ca
193. You ask your girlfriend to drive home so you can sit back with
3ef2ca
     your PDA and download the information to your laptop
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    ///