Karsten Hopp f09aa1
To: vim-dev@vim.org
Karsten Hopp f09aa1
Subject: patch 7.1.094
Karsten Hopp f09aa1
Fcc: outbox
Karsten Hopp f09aa1
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp f09aa1
Mime-Version: 1.0
Karsten Hopp f09aa1
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp f09aa1
Content-Transfer-Encoding: 8bit
Karsten Hopp f09aa1
------------
Karsten Hopp f09aa1
Karsten Hopp f09aa1
Patch 7.1.094
Karsten Hopp f09aa1
Problem:    When checking if syntax highlighting is present, looking in the
Karsten Hopp f09aa1
	    current buffer instead of the specified one.
Karsten Hopp f09aa1
Solution:   Use "buf" instead of "curbuf".
Karsten Hopp f09aa1
Files:	    src/syntax.c
Karsten Hopp f09aa1
Karsten Hopp f09aa1
Karsten Hopp f09aa1
*** ../vim-7.1.093/src/syntax.c	Tue Aug 21 17:29:04 2007
Karsten Hopp f09aa1
--- src/syntax.c	Wed Aug 29 23:27:52 2007
Karsten Hopp f09aa1
***************
Karsten Hopp f09aa1
*** 5987,5994 ****
Karsten Hopp f09aa1
  {
Karsten Hopp f09aa1
      return (buf->b_syn_patterns.ga_len != 0
Karsten Hopp f09aa1
  	    || buf->b_syn_clusters.ga_len != 0
Karsten Hopp f09aa1
! 	    || curbuf->b_keywtab.ht_used > 0
Karsten Hopp f09aa1
! 	    || curbuf->b_keywtab_ic.ht_used > 0);
Karsten Hopp f09aa1
  }
Karsten Hopp f09aa1
  
Karsten Hopp f09aa1
  #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
Karsten Hopp f09aa1
--- 5987,5994 ----
Karsten Hopp f09aa1
  {
Karsten Hopp f09aa1
      return (buf->b_syn_patterns.ga_len != 0
Karsten Hopp f09aa1
  	    || buf->b_syn_clusters.ga_len != 0
Karsten Hopp f09aa1
! 	    || buf->b_keywtab.ht_used > 0
Karsten Hopp f09aa1
! 	    || buf->b_keywtab_ic.ht_used > 0);
Karsten Hopp f09aa1
  }
Karsten Hopp f09aa1
  
Karsten Hopp f09aa1
  #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
Karsten Hopp f09aa1
*** ../vim-7.1.093/src/version.c	Thu Aug 30 13:51:52 2007
Karsten Hopp f09aa1
--- src/version.c	Thu Aug 30 19:35:52 2007
Karsten Hopp f09aa1
***************
Karsten Hopp f09aa1
*** 668,669 ****
Karsten Hopp f09aa1
--- 668,671 ----
Karsten Hopp f09aa1
  {   /* Add new patch number below this line */
Karsten Hopp f09aa1
+ /**/
Karsten Hopp f09aa1
+     94,
Karsten Hopp f09aa1
  /**/
Karsten Hopp f09aa1
Karsten Hopp f09aa1
-- 
Karsten Hopp f09aa1
MAN:     You don't frighten us, English pig-dog!  Go and boil your bottoms,
Karsten Hopp f09aa1
         son of a silly person.  I blow my nose on you, so-called Arthur-king,
Karsten Hopp f09aa1
         you and your silly English K...kaniggets.
Karsten Hopp f09aa1
   He puts hands to his ears and blows a raspberry.
Karsten Hopp f09aa1
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp f09aa1
Karsten Hopp f09aa1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp f09aa1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp f09aa1
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp f09aa1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///