mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 7.4.719
Problem: Overflow when adding MAXCOL to a pointer. Solution: Subtract pointers instead. (James McCoy)
This commit is contained in:
@@ -4341,7 +4341,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
|||||||
|| (mb_utf8 && mb_c == 160)
|
|| (mb_utf8 && mb_c == 160)
|
||||||
#endif
|
#endif
|
||||||
) && lcs_nbsp)
|
) && lcs_nbsp)
|
||||||
|| (c == ' ' && lcs_space && ptr <= line + trailcol)))
|
|| (c == ' ' && lcs_space && ptr - line <= trailcol)))
|
||||||
{
|
{
|
||||||
c = (c == ' ') ? lcs_space : lcs_nbsp;
|
c = (c == ' ') ? lcs_space : lcs_nbsp;
|
||||||
if (area_attr == 0 && search_attr == 0)
|
if (area_attr == 0 && search_attr == 0)
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
719,
|
||||||
/**/
|
/**/
|
||||||
718,
|
718,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user