2de6f4d
To: vim-dev@vim.org
2de6f4d
Subject: Patch 7.2.267
2de6f4d
Fcc: outbox
2de6f4d
From: Bram Moolenaar <Bram@moolenaar.net>
2de6f4d
Mime-Version: 1.0
2de6f4d
Content-Type: text/plain; charset=UTF-8
2de6f4d
Content-Transfer-Encoding: 8bit
2de6f4d
------------
2de6f4d
2de6f4d
Patch 7.2.267
2de6f4d
Problem:    Crash for narrow window and double-width character.
2de6f4d
Solution:   Check for zero width.  (Taro Muraoka)
2de6f4d
Files:	    src/charset.c
2de6f4d
2de6f4d
2de6f4d
*** ../vim-7.2.266/src/charset.c	2009-09-11 14:02:25.000000000 +0200
2de6f4d
--- src/charset.c	2009-10-07 16:17:27.000000000 +0200
2de6f4d
***************
2de6f4d
*** 1218,1223 ****
2de6f4d
--- 1218,1225 ----
2de6f4d
      if ((int)vcol == width1 - 1)
2de6f4d
  	return TRUE;
2de6f4d
      width2 = width1 + win_col_off2(wp);
2de6f4d
+     if (width2 <= 0)
2de6f4d
+ 	return FALSE;
2de6f4d
      return ((vcol - width1) % width2 == width2 - 1);
2de6f4d
  }
2de6f4d
  #endif /* FEAT_MBYTE */
2de6f4d
*** ../vim-7.2.266/src/version.c	2009-09-30 15:15:33.000000000 +0200
2de6f4d
--- src/version.c	2009-10-07 16:19:05.000000000 +0200
2de6f4d
***************
2de6f4d
*** 678,679 ****
2de6f4d
--- 678,681 ----
2de6f4d
  {   /* Add new patch number below this line */
2de6f4d
+ /**/
2de6f4d
+     267,
2de6f4d
  /**/
2de6f4d
2de6f4d
-- 
2de6f4d
You got to work at a mill?  Lucky!  I got sent back to work in the
2de6f4d
acid-mines for my daily crust of stale bread... which not even the
2de6f4d
birds would eat.
2de6f4d
2de6f4d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
2de6f4d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
2de6f4d
\\\        download, build and distribute -- http://www.A-A-P.org        ///
2de6f4d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///