- patchlevel 77

This commit is contained in:
Karsten Hopp 2007-08-15 12:05:37 +00:00
parent 42380ab50c
commit 75346e05c1
3 changed files with 83 additions and 1 deletions

50
7.1.077 Normal file
View File

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

View File

@ -93,3 +93,12 @@ Individual patches for Vim 7.1:
4553 7.1.066 when 'bomb' is changed the file should be considered modified
7701 7.1.067 'infercase' doesn't work for thesaurus completion
6709 7.1.068 'equalalways' equalizes windows too often
2757 7.1.069 GTK GUI: confirm() dialog has a default button when not wanted
1560 7.1.070 (extra) Win32 GUI: same confirm() default button problem
5534 7.1.071 (after 7.1.040) add a basic test for regexp patterns
5705 7.1.072 (extra, after 7.1.041 and 7.1.071) extra part of 7.1.071
3595 7.1.073 (after 7.1.062) crash when 'preserveindent' is set
5259 7.1.074 crash when using string() on a recursively nested List
1686 7.1.075 ":let v:statusmsg" reads memory already freed
2376 7.1.076 a couple more strcpy() with overlapping arguments
1551 7.1.077 flag indicating spell checking is to be done isn't always set

View File

@ -15,7 +15,7 @@
#used for pre-releases:
%define beta %{nil}
%define vimdir vim71%{?beta}
%define patchlevel 68
%define patchlevel 77
Summary: The VIM editor
URL: http://www.vim.org/
@ -120,6 +120,15 @@ Patch064: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.064
Patch066: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.066
Patch067: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.067
Patch068: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.068
Patch069: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.069
#Patch070: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.070
Patch071: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.071
#Patch072: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.072
Patch073: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.073
Patch074: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.074
Patch075: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.075
Patch076: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.076
Patch077: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.077
Patch3000: vim-7.0-syntax.patch
Patch3002: vim-7.1-nowarnings.patch
@ -323,6 +332,17 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
%patch066 -p0
%patch067 -p0
%patch068 -p0
%patch069 -p0
# Win32:
#patch070 -p0
%patch071 -p0
# DOS, Amiga, OS2, VMS:
#patch072 -p0
%patch073 -p0
%patch074 -p0
%patch075 -p0
%patch076 -p0
%patch077 -p0
# install spell files
%if %{withvimspell}
@ -708,6 +728,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/icons/hicolor/*/apps/*
%changelog
* Wed Aug 15 2007 Karsten Hopp <karsten@redhat.com> 7.1.77-1
- patchlevel 77
* Mon Aug 13 2007 Karsten Hopp <karsten@redhat.com> 7.1.68-1
- patchlevel 68