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