Karsten Hopp 424e24
To: vim-dev@vim.org
Karsten Hopp 424e24
Subject: Patch 7.0.036
Karsten Hopp 424e24
Fcc: outbox
Karsten Hopp 424e24
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 424e24
Mime-Version: 1.0
Karsten Hopp 424e24
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 424e24
Content-Transfer-Encoding: 8bit
Karsten Hopp 424e24
------------
Karsten Hopp 424e24
Karsten Hopp 424e24
Patch 7.0.036
Karsten Hopp 424e24
Problem:    Can't compile with small features and syntax highlighting or the
Karsten Hopp 424e24
	    diff feature.
Karsten Hopp 424e24
Solution:   Define LINE_ATTR whenever syntax highlighting or the diff feature
Karsten Hopp 424e24
	    is enabled.
Karsten Hopp 424e24
Files:	    src/screen.c
Karsten Hopp 424e24
Karsten Hopp 424e24
Karsten Hopp 424e24
*** ../vim-7.0.035/src/screen.c	Fri May  5 23:13:04 2006
Karsten Hopp 424e24
--- src/screen.c	Tue Jul 11 21:33:53 2006
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 2612,2618 ****
Karsten Hopp 424e24
  #ifdef FEAT_LINEBREAK
Karsten Hopp 424e24
      int		need_showbreak = FALSE;
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
! #if defined(FEAT_SIGNS) || (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS))
Karsten Hopp 424e24
  # define LINE_ATTR
Karsten Hopp 424e24
      int		line_attr = 0;		/* atrribute for the whole line */
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
--- 2612,2619 ----
Karsten Hopp 424e24
  #ifdef FEAT_LINEBREAK
Karsten Hopp 424e24
      int		need_showbreak = FALSE;
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
! #if defined(FEAT_SIGNS) || (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) \
Karsten Hopp 424e24
! 	|| defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
Karsten Hopp 424e24
  # define LINE_ATTR
Karsten Hopp 424e24
      int		line_attr = 0;		/* atrribute for the whole line */
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 2626,2632 ****
Karsten Hopp 424e24
      int		prev_c = 0;		/* previous Arabic character */
Karsten Hopp 424e24
      int		prev_c1 = 0;		/* first composing char for prev_c */
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
! #if defined(FEAT_DIFF) || defined(LINE_ATTR)
Karsten Hopp 424e24
      int		did_line_attr = 0;
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
  
Karsten Hopp 424e24
--- 2627,2633 ----
Karsten Hopp 424e24
      int		prev_c = 0;		/* previous Arabic character */
Karsten Hopp 424e24
      int		prev_c1 = 0;		/* first composing char for prev_c */
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
! #if defined(LINE_ATTR)
Karsten Hopp 424e24
      int		did_line_attr = 0;
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
  
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 4116,4132 ****
Karsten Hopp 424e24
  		    --ptr;	    /* put it back at the NUL */
Karsten Hopp 424e24
  		}
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
! #if defined(FEAT_DIFF) || defined(LINE_ATTR)
Karsten Hopp 424e24
  		else if ((
Karsten Hopp 424e24
  # ifdef FEAT_DIFF
Karsten Hopp 424e24
! 			    diff_hlf != (hlf_T)0
Karsten Hopp 424e24
! #  ifdef LINE_ATTR
Karsten Hopp 424e24
! 			    ||
Karsten Hopp 424e24
! #  endif
Karsten Hopp 424e24
  # endif
Karsten Hopp 424e24
- # ifdef LINE_ATTR
Karsten Hopp 424e24
  			    line_attr != 0
Karsten Hopp 424e24
- # endif
Karsten Hopp 424e24
  			) && (
Karsten Hopp 424e24
  # ifdef FEAT_RIGHTLEFT
Karsten Hopp 424e24
  			    wp->w_p_rl ? (col >= 0) :
Karsten Hopp 424e24
--- 4117,4128 ----
Karsten Hopp 424e24
  		    --ptr;	    /* put it back at the NUL */
Karsten Hopp 424e24
  		}
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
! #if defined(LINE_ATTR)
Karsten Hopp 424e24
  		else if ((
Karsten Hopp 424e24
  # ifdef FEAT_DIFF
Karsten Hopp 424e24
! 			    diff_hlf != (hlf_T)0 ||
Karsten Hopp 424e24
  # endif
Karsten Hopp 424e24
  			    line_attr != 0
Karsten Hopp 424e24
  			) && (
Karsten Hopp 424e24
  # ifdef FEAT_RIGHTLEFT
Karsten Hopp 424e24
  			    wp->w_p_rl ? (col >= 0) :
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 4237,4243 ****
Karsten Hopp 424e24
  	 * At end of the text line or just after the last character.
Karsten Hopp 424e24
  	 */
Karsten Hopp 424e24
  	if (c == NUL
Karsten Hopp 424e24
! #if defined(FEAT_DIFF) || defined(LINE_ATTR)
Karsten Hopp 424e24
  		|| did_line_attr == 1
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
  		)
Karsten Hopp 424e24
--- 4233,4239 ----
Karsten Hopp 424e24
  	 * At end of the text line or just after the last character.
Karsten Hopp 424e24
  	 */
Karsten Hopp 424e24
  	if (c == NUL
Karsten Hopp 424e24
! #if defined(LINE_ATTR)
Karsten Hopp 424e24
  		|| did_line_attr == 1
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
  		)
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 4258,4264 ****
Karsten Hopp 424e24
  				|| prevcol == (long)match_hl[0].startcol
Karsten Hopp 424e24
  				|| prevcol == (long)match_hl[1].startcol
Karsten Hopp 424e24
  				|| prevcol == (long)match_hl[2].startcol)
Karsten Hopp 424e24
! # if defined(FEAT_DIFF) || defined(LINE_ATTR)
Karsten Hopp 424e24
  			    && did_line_attr <= 1
Karsten Hopp 424e24
  # endif
Karsten Hopp 424e24
  			   )
Karsten Hopp 424e24
--- 4254,4260 ----
Karsten Hopp 424e24
  				|| prevcol == (long)match_hl[0].startcol
Karsten Hopp 424e24
  				|| prevcol == (long)match_hl[1].startcol
Karsten Hopp 424e24
  				|| prevcol == (long)match_hl[2].startcol)
Karsten Hopp 424e24
! # if defined(LINE_ATTR)
Karsten Hopp 424e24
  			    && did_line_attr <= 1
Karsten Hopp 424e24
  # endif
Karsten Hopp 424e24
  			   )
Karsten Hopp 424e24
*** ../vim-7.0.035/src/version.c	Fri Jun 23 21:36:49 2006
Karsten Hopp 424e24
--- src/version.c	Tue Jul 11 21:36:50 2006
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 668,669 ****
Karsten Hopp 424e24
--- 668,671 ----
Karsten Hopp 424e24
  {   /* Add new patch number below this line */
Karsten Hopp 424e24
+ /**/
Karsten Hopp 424e24
+     36,
Karsten Hopp 424e24
  /**/
Karsten Hopp 424e24
Karsten Hopp 424e24
-- 
Karsten Hopp 424e24
Every engineer dreams about saving the universe and having sex with aliens.
Karsten Hopp 424e24
This is much more glamorous than the real life of an engineer, which consists
Karsten Hopp 424e24
of hiding from the universe and having sex without the participation of other
Karsten Hopp 424e24
life forms.                     (Scott Adams - The Dilbert principle)
Karsten Hopp 424e24
Karsten Hopp 424e24
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 424e24
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 424e24
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 424e24
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///