|
Karsten Hopp |
b2c7d7 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
b2c7d7 |
Subject: Patch 7.1.260
|
|
Karsten Hopp |
b2c7d7 |
Fcc: outbox
|
|
Karsten Hopp |
b2c7d7 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b2c7d7 |
Mime-Version: 1.0
|
|
Karsten Hopp |
b2c7d7 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
b2c7d7 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b2c7d7 |
------------
|
|
Karsten Hopp |
b2c7d7 |
|
|
Karsten Hopp |
b2c7d7 |
Patch 7.1.260
|
|
Karsten Hopp |
b2c7d7 |
Problem: Cursor positioning problem after ^@ wrapping halfway when
|
|
Karsten Hopp |
b2c7d7 |
'encoding' is utf-8.
|
|
Karsten Hopp |
b2c7d7 |
Solution: Only count a position for printable characters. (partly by
|
|
Karsten Hopp |
b2c7d7 |
Yukihiro Nakadaira)
|
|
Karsten Hopp |
b2c7d7 |
Files: src/charset.c
|
|
Karsten Hopp |
b2c7d7 |
|
|
Karsten Hopp |
b2c7d7 |
|
|
Karsten Hopp |
b2c7d7 |
*** ../vim-7.1.259/src/charset.c Sun Aug 19 22:42:27 2007
|
|
Karsten Hopp |
b2c7d7 |
--- src/charset.c Wed Feb 20 14:39:04 2008
|
|
Karsten Hopp |
b2c7d7 |
***************
|
|
Karsten Hopp |
b2c7d7 |
*** 1290,1296 ****
|
|
Karsten Hopp |
b2c7d7 |
/* If a double-cell char doesn't fit at the end of a line
|
|
Karsten Hopp |
b2c7d7 |
* it wraps to the next line, it's like this char is three
|
|
Karsten Hopp |
b2c7d7 |
* cells wide. */
|
|
Karsten Hopp |
b2c7d7 |
! if (incr == 2 && wp->w_p_wrap && in_win_border(wp, vcol))
|
|
Karsten Hopp |
b2c7d7 |
{
|
|
Karsten Hopp |
b2c7d7 |
++incr;
|
|
Karsten Hopp |
b2c7d7 |
head = 1;
|
|
Karsten Hopp |
b2c7d7 |
--- 1290,1297 ----
|
|
Karsten Hopp |
b2c7d7 |
/* If a double-cell char doesn't fit at the end of a line
|
|
Karsten Hopp |
b2c7d7 |
* it wraps to the next line, it's like this char is three
|
|
Karsten Hopp |
b2c7d7 |
* cells wide. */
|
|
Karsten Hopp |
b2c7d7 |
! if (incr == 2 && wp->w_p_wrap && MB_BYTE2LEN(*ptr) > 1
|
|
Karsten Hopp |
b2c7d7 |
! && in_win_border(wp, vcol))
|
|
Karsten Hopp |
b2c7d7 |
{
|
|
Karsten Hopp |
b2c7d7 |
++incr;
|
|
Karsten Hopp |
b2c7d7 |
head = 1;
|
|
Karsten Hopp |
b2c7d7 |
*** ../vim-7.1.259/src/version.c Wed Feb 20 14:15:45 2008
|
|
Karsten Hopp |
b2c7d7 |
--- src/version.c Wed Feb 20 14:57:45 2008
|
|
Karsten Hopp |
b2c7d7 |
***************
|
|
Karsten Hopp |
b2c7d7 |
*** 668,669 ****
|
|
Karsten Hopp |
b2c7d7 |
--- 668,671 ----
|
|
Karsten Hopp |
b2c7d7 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b2c7d7 |
+ /**/
|
|
Karsten Hopp |
b2c7d7 |
+ 260,
|
|
Karsten Hopp |
b2c7d7 |
/**/
|
|
Karsten Hopp |
b2c7d7 |
|
|
Karsten Hopp |
b2c7d7 |
--
|
|
Karsten Hopp |
b2c7d7 |
The users that I support would double-click on a landmine to find out
|
|
Karsten Hopp |
b2c7d7 |
what happens. -- A system administrator
|
|
Karsten Hopp |
b2c7d7 |
|
|
Karsten Hopp |
b2c7d7 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b2c7d7 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b2c7d7 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
b2c7d7 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|