01b76ef
To: vim_dev@googlegroups.com
01b76ef
Subject: Patch 7.4.303
01b76ef
Fcc: outbox
01b76ef
From: Bram Moolenaar <Bram@moolenaar.net>
01b76ef
Mime-Version: 1.0
01b76ef
Content-Type: text/plain; charset=UTF-8
01b76ef
Content-Transfer-Encoding: 8bit
01b76ef
------------
01b76ef
01b76ef
Patch 7.4.303
01b76ef
Problem:    When using double-width characters the text displayed on the
01b76ef
	    command line is sometimes truncated.
01b76ef
Solution:   Reset the string lenght. (Nobuhiro Takasaki)
01b76ef
Files:	    src/screen.c
01b76ef
01b76ef
01b76ef
*** ../vim-7.4.302/src/screen.c	2014-05-22 15:51:00.734399594 +0200
01b76ef
--- src/screen.c	2014-05-22 16:02:24.294385701 +0200
01b76ef
***************
01b76ef
*** 6916,6930 ****
01b76ef
   * a NUL.
01b76ef
   */
01b76ef
      void
01b76ef
! screen_puts_len(text, len, row, col, attr)
01b76ef
      char_u	*text;
01b76ef
!     int		len;
01b76ef
      int		row;
01b76ef
      int		col;
01b76ef
      int		attr;
01b76ef
  {
01b76ef
      unsigned	off;
01b76ef
      char_u	*ptr = text;
01b76ef
      int		c;
01b76ef
  #ifdef FEAT_MBYTE
01b76ef
      unsigned	max_off;
01b76ef
--- 6916,6931 ----
01b76ef
   * a NUL.
01b76ef
   */
01b76ef
      void
01b76ef
! screen_puts_len(text, textlen, row, col, attr)
01b76ef
      char_u	*text;
01b76ef
!     int		textlen;
01b76ef
      int		row;
01b76ef
      int		col;
01b76ef
      int		attr;
01b76ef
  {
01b76ef
      unsigned	off;
01b76ef
      char_u	*ptr = text;
01b76ef
+     int		len = textlen;
01b76ef
      int		c;
01b76ef
  #ifdef FEAT_MBYTE
01b76ef
      unsigned	max_off;
01b76ef
***************
01b76ef
*** 7169,7175 ****
01b76ef
--- 7170,7180 ----
01b76ef
  	    col += mbyte_cells;
01b76ef
  	    ptr += mbyte_blen;
01b76ef
  	    if (clear_next_cell)
01b76ef
+ 	    {
01b76ef
+ 		/* This only happens at the end, display one space next. */
01b76ef
  		ptr = (char_u *)" ";
01b76ef
+ 		len = -1;
01b76ef
+ 	    }
01b76ef
  	}
01b76ef
  	else
01b76ef
  #endif
01b76ef
*** ../vim-7.4.302/src/version.c	2014-05-22 15:51:00.738399594 +0200
01b76ef
--- src/version.c	2014-05-22 15:58:15.050390766 +0200
01b76ef
***************
01b76ef
*** 736,737 ****
01b76ef
--- 736,739 ----
01b76ef
  {   /* Add new patch number below this line */
01b76ef
+ /**/
01b76ef
+     303,
01b76ef
  /**/
01b76ef
01b76ef
-- 
01b76ef
hundred-and-one symptoms of being an internet addict:
01b76ef
193. You ask your girlfriend to drive home so you can sit back with
01b76ef
     your PDA and download the information to your laptop
01b76ef
01b76ef
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
01b76ef
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
01b76ef
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
01b76ef
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///