4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Reading bytes that were not written when spell checking and a line
12 has a very large indent.
13 Solution: Don't copy the start of the next line when it only contains
14 spaces. (Dominique Pelle)
18 *** ../vim-7.1.289/src/spell.c Sat Jan 19 15:55:51 2008
19 --- src/spell.c Sat Mar 29 13:00:28 2008
24 * For spell checking: concatenate the start of the following line "line" into
25 * "buf", blanking-out special characters. Copy less then "maxlen" bytes.
26 + * Keep the blanks at the start of the next line, this is used in win_line()
27 + * to skip those bytes if the word was OK.
30 spell_cat_line(buf, line, maxlen)
37 ! vim_strncpy(buf + 1, line, maxlen - 2);
38 ! n = (int)(p - line);
41 ! vim_memset(buf + 1, ' ', n);
49 ! /* Only worth concatenating if there is something else than spaces to
51 ! n = (int)(p - line) + 1;
54 ! vim_memset(buf, ' ', n);
55 ! vim_strncpy(buf + n, p, maxlen - 1 - n);
60 *** ../vim-7.1.289/src/version.c Tue Apr 1 14:53:02 2008
61 --- src/version.c Tue Apr 1 17:05:55 2008
65 { /* Add new patch number below this line */
71 hundred-and-one symptoms of being an internet addict:
72 209. Your house stinks because you haven't cleaned it in a week.
74 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
75 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76 \\\ download, build and distribute -- http://www.A-A-P.org ///
77 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///