]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.290
- recognize update_mime_database
[packages/vim.git] / 7.1.290
CommitLineData
c86c2677
ER
1To: vim-dev@vim.org
2Subject: Patch 7.1.290
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.290
11Problem: Reading bytes that were not written when spell checking and a line
12 has a very large indent.
13Solution: Don't copy the start of the next line when it only contains
14 spaces. (Dominique Pelle)
15Files: src/spell.c
16
17
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
20***************
21*** 2268,2273 ****
22--- 2269,2276 ----
23 /*
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.
28 */
29 void
30 spell_cat_line(buf, line, maxlen)
31***************
32*** 2284,2295 ****
33
34 if (*p != NUL)
35 {
36! *buf = ' ';
37! vim_strncpy(buf + 1, line, maxlen - 2);
38! n = (int)(p - line);
39! if (n >= maxlen)
40! n = maxlen - 1;
41! vim_memset(buf + 1, ' ', n);
42 }
43 }
44
45--- 2287,2300 ----
46
47 if (*p != NUL)
48 {
49! /* Only worth concatenating if there is something else than spaces to
50! * concatenate. */
51! n = (int)(p - line) + 1;
52! if (n < maxlen - 1)
53! {
54! vim_memset(buf, ' ', n);
55! vim_strncpy(buf + n, p, maxlen - 1 - n);
56! }
57 }
58 }
59
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
62***************
63*** 668,669 ****
64--- 668,671 ----
65 { /* Add new patch number below this line */
66+ /**/
67+ 290,
68 /**/
69
70--
71hundred-and-one symptoms of being an internet addict:
72209. Your house stinks because you haven't cleaned it in a week.
73
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 ///
This page took 0.070911 seconds and 4 git commands to generate.