|
Karsten Hopp |
9d5a40 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
9d5a40 |
Subject: Patch 7.1.290
|
|
Karsten Hopp |
9d5a40 |
Fcc: outbox
|
|
Karsten Hopp |
9d5a40 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
9d5a40 |
Mime-Version: 1.0
|
|
Karsten Hopp |
9d5a40 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
9d5a40 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
9d5a40 |
------------
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
Patch 7.1.290
|
|
Karsten Hopp |
9d5a40 |
Problem: Reading bytes that were not written when spell checking and a line
|
|
Karsten Hopp |
9d5a40 |
has a very large indent.
|
|
Karsten Hopp |
9d5a40 |
Solution: Don't copy the start of the next line when it only contains
|
|
Karsten Hopp |
9d5a40 |
spaces. (Dominique Pelle)
|
|
Karsten Hopp |
9d5a40 |
Files: src/spell.c
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
*** ../vim-7.1.289/src/spell.c Sat Jan 19 15:55:51 2008
|
|
Karsten Hopp |
9d5a40 |
--- src/spell.c Sat Mar 29 13:00:28 2008
|
|
Karsten Hopp |
9d5a40 |
***************
|
|
Karsten Hopp |
9d5a40 |
*** 2268,2273 ****
|
|
Karsten Hopp |
9d5a40 |
--- 2269,2276 ----
|
|
Karsten Hopp |
9d5a40 |
/*
|
|
Karsten Hopp |
9d5a40 |
* For spell checking: concatenate the start of the following line "line" into
|
|
Karsten Hopp |
9d5a40 |
* "buf", blanking-out special characters. Copy less then "maxlen" bytes.
|
|
Karsten Hopp |
9d5a40 |
+ * Keep the blanks at the start of the next line, this is used in win_line()
|
|
Karsten Hopp |
9d5a40 |
+ * to skip those bytes if the word was OK.
|
|
Karsten Hopp |
9d5a40 |
*/
|
|
Karsten Hopp |
9d5a40 |
void
|
|
Karsten Hopp |
9d5a40 |
spell_cat_line(buf, line, maxlen)
|
|
Karsten Hopp |
9d5a40 |
***************
|
|
Karsten Hopp |
9d5a40 |
*** 2284,2295 ****
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
if (*p != NUL)
|
|
Karsten Hopp |
9d5a40 |
{
|
|
Karsten Hopp |
9d5a40 |
! *buf = ' ';
|
|
Karsten Hopp |
9d5a40 |
! vim_strncpy(buf + 1, line, maxlen - 2);
|
|
Karsten Hopp |
9d5a40 |
! n = (int)(p - line);
|
|
Karsten Hopp |
9d5a40 |
! if (n >= maxlen)
|
|
Karsten Hopp |
9d5a40 |
! n = maxlen - 1;
|
|
Karsten Hopp |
9d5a40 |
! vim_memset(buf + 1, ' ', n);
|
|
Karsten Hopp |
9d5a40 |
}
|
|
Karsten Hopp |
9d5a40 |
}
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
--- 2287,2300 ----
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
if (*p != NUL)
|
|
Karsten Hopp |
9d5a40 |
{
|
|
Karsten Hopp |
9d5a40 |
! /* Only worth concatenating if there is something else than spaces to
|
|
Karsten Hopp |
9d5a40 |
! * concatenate. */
|
|
Karsten Hopp |
9d5a40 |
! n = (int)(p - line) + 1;
|
|
Karsten Hopp |
9d5a40 |
! if (n < maxlen - 1)
|
|
Karsten Hopp |
9d5a40 |
! {
|
|
Karsten Hopp |
9d5a40 |
! vim_memset(buf, ' ', n);
|
|
Karsten Hopp |
9d5a40 |
! vim_strncpy(buf + n, p, maxlen - 1 - n);
|
|
Karsten Hopp |
9d5a40 |
! }
|
|
Karsten Hopp |
9d5a40 |
}
|
|
Karsten Hopp |
9d5a40 |
}
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
*** ../vim-7.1.289/src/version.c Tue Apr 1 14:53:02 2008
|
|
Karsten Hopp |
9d5a40 |
--- src/version.c Tue Apr 1 17:05:55 2008
|
|
Karsten Hopp |
9d5a40 |
***************
|
|
Karsten Hopp |
9d5a40 |
*** 668,669 ****
|
|
Karsten Hopp |
9d5a40 |
--- 668,671 ----
|
|
Karsten Hopp |
9d5a40 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
9d5a40 |
+ /**/
|
|
Karsten Hopp |
9d5a40 |
+ 290,
|
|
Karsten Hopp |
9d5a40 |
/**/
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
--
|
|
Karsten Hopp |
9d5a40 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
9d5a40 |
209. Your house stinks because you haven't cleaned it in a week.
|
|
Karsten Hopp |
9d5a40 |
|
|
Karsten Hopp |
9d5a40 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
9d5a40 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
9d5a40 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
9d5a40 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|