From 6c60ea21c278b15fa8cb6075dcf21a40137e748a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 11 Jul 2006 20:36:45 +0000 Subject: [PATCH] updated for version 7.0-036 --- src/screen.c | 18 +++++++----------- src/version.c | 2 ++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/screen.c b/src/screen.c index 222cd32a0..07eaaaadb 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2612,7 +2612,8 @@ win_line(wp, lnum, startrow, endrow, nochange) #ifdef FEAT_LINEBREAK int need_showbreak = FALSE; #endif -#if defined(FEAT_SIGNS) || (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) +#if defined(FEAT_SIGNS) || (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) \ + || defined(FEAT_SYN_HL) || defined(FEAT_DIFF) # define LINE_ATTR int line_attr = 0; /* atrribute for the whole line */ #endif @@ -2626,7 +2627,7 @@ win_line(wp, lnum, startrow, endrow, nochange) int prev_c = 0; /* previous Arabic character */ int prev_c1 = 0; /* first composing char for prev_c */ #endif -#if defined(FEAT_DIFF) || defined(LINE_ATTR) +#if defined(LINE_ATTR) int did_line_attr = 0; #endif @@ -4116,17 +4117,12 @@ win_line(wp, lnum, startrow, endrow, nochange) --ptr; /* put it back at the NUL */ } #endif -#if defined(FEAT_DIFF) || defined(LINE_ATTR) +#if defined(LINE_ATTR) else if (( # ifdef FEAT_DIFF - diff_hlf != (hlf_T)0 -# ifdef LINE_ATTR - || -# endif + diff_hlf != (hlf_T)0 || # endif -# ifdef LINE_ATTR line_attr != 0 -# endif ) && ( # ifdef FEAT_RIGHTLEFT wp->w_p_rl ? (col >= 0) : @@ -4237,7 +4233,7 @@ win_line(wp, lnum, startrow, endrow, nochange) * At end of the text line or just after the last character. */ if (c == NUL -#if defined(FEAT_DIFF) || defined(LINE_ATTR) +#if defined(LINE_ATTR) || did_line_attr == 1 #endif ) @@ -4258,7 +4254,7 @@ win_line(wp, lnum, startrow, endrow, nochange) || prevcol == (long)match_hl[0].startcol || prevcol == (long)match_hl[1].startcol || prevcol == (long)match_hl[2].startcol) -# if defined(FEAT_DIFF) || defined(LINE_ATTR) +# if defined(LINE_ATTR) && did_line_attr <= 1 # endif ) diff --git a/src/version.c b/src/version.c index 6c3a4bea8..318bc93a1 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 36, /**/ 35, /**/ -- 2.50.1