]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.290
- updated to 7.1.326
[packages/vim.git] / 7.1.290
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.290
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.290
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)
15 Files:      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 -- 
71 hundred-and-one symptoms of being an internet addict:
72 209. 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.041089 seconds and 3 git commands to generate.