|
Karsten Hopp |
a58b54 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
a58b54 |
Subject: Patch 7.4.478
|
|
Karsten Hopp |
a58b54 |
Fcc: outbox
|
|
Karsten Hopp |
a58b54 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a58b54 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a58b54 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
a58b54 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a58b54 |
------------
|
|
Karsten Hopp |
a58b54 |
|
|
Karsten Hopp |
a58b54 |
Patch 7.4.478
|
|
Karsten Hopp |
a58b54 |
Problem: Using byte length instead of character length for 'showbreak'.
|
|
Karsten Hopp |
a58b54 |
Solution: Compute the character length. (Marco Hinz)
|
|
Karsten Hopp |
a58b54 |
Files: src/charset.c
|
|
Karsten Hopp |
a58b54 |
|
|
Karsten Hopp |
a58b54 |
|
|
Karsten Hopp |
a58b54 |
*** ../vim-7.4.477/src/charset.c 2014-10-10 15:34:29.657092994 +0200
|
|
Karsten Hopp |
a58b54 |
--- src/charset.c 2014-10-15 21:24:05.578082450 +0200
|
|
Karsten Hopp |
a58b54 |
***************
|
|
Karsten Hopp |
a58b54 |
*** 1184,1191 ****
|
|
Karsten Hopp |
a58b54 |
{
|
|
Karsten Hopp |
a58b54 |
col -= W_WIDTH(wp);
|
|
Karsten Hopp |
a58b54 |
numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
|
|
Karsten Hopp |
a58b54 |
! if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
|
|
Karsten Hopp |
a58b54 |
! col -= (colnr_T)STRLEN(p_sbr);
|
|
Karsten Hopp |
a58b54 |
if (numberextra > 0)
|
|
Karsten Hopp |
a58b54 |
col = col % numberextra;
|
|
Karsten Hopp |
a58b54 |
}
|
|
Karsten Hopp |
a58b54 |
--- 1184,1195 ----
|
|
Karsten Hopp |
a58b54 |
{
|
|
Karsten Hopp |
a58b54 |
col -= W_WIDTH(wp);
|
|
Karsten Hopp |
a58b54 |
numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
|
|
Karsten Hopp |
a58b54 |
! if (*p_sbr != NUL)
|
|
Karsten Hopp |
a58b54 |
! {
|
|
Karsten Hopp |
a58b54 |
! colnr_T sbrlen = (colnr_T)MB_CHARLEN(p_sbr);
|
|
Karsten Hopp |
a58b54 |
! if (col >= sbrlen)
|
|
Karsten Hopp |
a58b54 |
! col -= sbrlen;
|
|
Karsten Hopp |
a58b54 |
! }
|
|
Karsten Hopp |
a58b54 |
if (numberextra > 0)
|
|
Karsten Hopp |
a58b54 |
col = col % numberextra;
|
|
Karsten Hopp |
a58b54 |
}
|
|
Karsten Hopp |
a58b54 |
*** ../vim-7.4.477/src/version.c 2014-10-15 12:56:44.006015955 +0200
|
|
Karsten Hopp |
a58b54 |
--- src/version.c 2014-10-15 21:19:10.414081805 +0200
|
|
Karsten Hopp |
a58b54 |
***************
|
|
Karsten Hopp |
a58b54 |
*** 743,744 ****
|
|
Karsten Hopp |
a58b54 |
--- 743,746 ----
|
|
Karsten Hopp |
a58b54 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a58b54 |
+ /**/
|
|
Karsten Hopp |
a58b54 |
+ 478,
|
|
Karsten Hopp |
a58b54 |
/**/
|
|
Karsten Hopp |
a58b54 |
|
|
Karsten Hopp |
a58b54 |
--
|
|
Karsten Hopp |
a58b54 |
There is a fine line between courage and foolishness.
|
|
Karsten Hopp |
a58b54 |
Unfortunately, it's not a fence.
|
|
Karsten Hopp |
a58b54 |
|
|
Karsten Hopp |
a58b54 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a58b54 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a58b54 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
a58b54 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|