mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.478
Problem: Using byte length instead of character length for 'showbreak'. Solution: Compute the character length. (Marco Hinz)
This commit is contained in:
parent
e962c6795b
commit
1c85210d6d
@ -1184,8 +1184,12 @@ win_lbr_chartabsize(wp, line, s, col, headp)
|
||||
{
|
||||
col -= W_WIDTH(wp);
|
||||
numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
|
||||
if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
|
||||
col -= (colnr_T)STRLEN(p_sbr);
|
||||
if (*p_sbr != NUL)
|
||||
{
|
||||
colnr_T sbrlen = (colnr_T)MB_CHARLEN(p_sbr);
|
||||
if (col >= sbrlen)
|
||||
col -= sbrlen;
|
||||
}
|
||||
if (numberextra > 0)
|
||||
col = col % numberextra;
|
||||
}
|
||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
478,
|
||||
/**/
|
||||
477,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user