lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
f301e86
To: vim-dev@vim.org
f301e86
Subject: Patch 7.0.009
f301e86
Fcc: outbox
f301e86
From: Bram Moolenaar <Bram@moolenaar.net>
f301e86
Mime-Version: 1.0
f301e86
Content-Type: text/plain; charset=ISO-8859-1
f301e86
Content-Transfer-Encoding: 8bit
f301e86
------------
f301e86
f301e86
Patch 7.0.009
f301e86
Problem:    ml_get errors with both 'sidescroll' and 'spell' set.
f301e86
Solution:   Use ml_get_buf() instead of ml_get(), get the line from the right
f301e86
	    buffer, not the current one.
f301e86
Files:	    src/spell.c
f301e86
f301e86
f301e86
*** ../vim-7.0.008/src/spell.c	Wed May 10 15:22:50 2006
f301e86
--- src/spell.c	Tue May  9 18:55:04 2006
f301e86
***************
f301e86
*** 2108,2114 ****
f301e86
  	 * possible. */
f301e86
  	STRCPY(buf, line);
f301e86
  	if (lnum < wp->w_buffer->b_ml.ml_line_count)
f301e86
! 	    spell_cat_line(buf + STRLEN(buf), ml_get(lnum + 1), MAXWLEN);
f301e86
  
f301e86
  	p = buf + skip;
f301e86
  	endp = buf + len;
f301e86
--- 2108,2115 ----
f301e86
  	 * possible. */
f301e86
  	STRCPY(buf, line);
f301e86
  	if (lnum < wp->w_buffer->b_ml.ml_line_count)
f301e86
! 	    spell_cat_line(buf + STRLEN(buf),
f301e86
! 			  ml_get_buf(wp->w_buffer, lnum + 1, FALSE), MAXWLEN);
f301e86
  
f301e86
  	p = buf + skip;
f301e86
  	endp = buf + len;
f301e86
*** ../vim-7.0.008/src/version.c	Wed May 10 17:40:17 2006
f301e86
--- src/version.c	Wed May 10 17:50:20 2006
f301e86
***************
f301e86
*** 668,669 ****
f301e86
--- 668,671 ----
f301e86
  {   /* Add new patch number below this line */
f301e86
+ /**/
f301e86
+     9,
f301e86
  /**/
f301e86
f301e86
-- 
f301e86
I AM THANKFUL...
f301e86
...for the taxes that I pay because it means that I am employed.
f301e86
f301e86
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
f301e86
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
f301e86
\\\        download, build and distribute -- http://www.A-A-P.org        ///
f301e86
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///