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