]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.269
- initial import
[packages/vim.git] / 6.2.269
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.269
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 6.2.269
11 Problem:    Diff mode does not highlight a change in a combining character.
12             (Raphael Finkel)
13 Solution:   Make diff_find_change() multi-byte aware: find the start byte of
14             a character that contains a change.
15 Files:      src/diff.c
16
17
18 *** ../vim-6.2.268/src/diff.c   Mon Feb  2 12:53:51 2004
19 --- src/diff.c  Tue Feb 17 16:53:25 2004
20 ***************
21 *** 1613,1618 ****
22 --- 1613,1627 ----
23             /* Search for start of difference */
24             for (si = 0; line_org[si] != NUL && line_org[si] == line_new[si]; )
25                 ++si;
26 + #ifdef FEAT_MBYTE
27 +           if (has_mbyte)
28 +           {
29 +               /* Move back to first byte of character in both lines (may
30 +                * have "nn^" in line_org and "n^ in line_new). */
31 +               si -= (*mb_head_off)(line_org, line_org + si);
32 +               si -= (*mb_head_off)(line_new, line_new + si);
33 +           }
34 + #endif
35             if (*startp > si)
36                 *startp = si;
37   
38 *** ../vim-6.2.268/src/version.c        Tue Feb 17 21:31:23 2004
39 --- src/version.c       Tue Feb 17 21:36:06 2004
40 ***************
41 *** 639,640 ****
42 --- 639,642 ----
43   {   /* Add new patch number below this line */
44 + /**/
45 +     269,
46   /**/
47
48 -- 
49 hundred-and-one symptoms of being an internet addict:
50 172. You join listservers just for the extra e-mail.
51
52  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
53 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
54 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
55  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
This page took 0.032469 seconds and 3 git commands to generate.