home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.1 / 7.1.077 < prev    next >
Encoding:
Internet Message Format  |  2007-11-19  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.1.077
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.1.077
  11. Problem:    Using "can_spell" without initializing it. (Dominique Pelle)
  12. Solution:   Set a default for get_syntax_attr().
  13. Files:        src/syntax.c
  14.  
  15.  
  16. *** ../vim-7.1.076/src/syntax.c    Thu Jul 26 22:55:11 2007
  17. --- src/syntax.c    Sun Aug 12 19:49:07 2007
  18. ***************
  19. *** 1727,1732 ****
  20. --- 1727,1739 ----
  21.   {
  22.       int        attr = 0;
  23.   
  24. +     if (can_spell != NULL)
  25. +     /* Default: Only do spelling when there is no @Spell cluster or when
  26. +      * ":syn spell toplevel" was used. */
  27. +     *can_spell = syn_buf->b_syn_spell == SYNSPL_DEFAULT
  28. +             ? (syn_buf->b_spell_cluster_id == 0)
  29. +             : (syn_buf->b_syn_spell == SYNSPL_TOP);
  30.       /* check for out of memory situation */
  31.       if (syn_buf->b_sst_array == NULL)
  32.       return 0;
  33. *** ../vim-7.1.076/src/version.c    Tue Aug 14 22:54:00 2007
  34. --- src/version.c    Tue Aug 14 23:06:26 2007
  35. ***************
  36. *** 668,669 ****
  37. --- 668,671 ----
  38.   {   /* Add new patch number below this line */
  39. + /**/
  40. +     77,
  41.   /**/
  42.  
  43. -- 
  44. Send $25.00 for handy leaflet on how to make money by selling leaflets
  45.  
  46.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  47. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  48. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  49.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  50.