]> git.pld-linux.org Git - packages/vim.git/blame - 6.3.046
- use better php indentation script
[packages/vim.git] / 6.3.046
CommitLineData
193cbe32
AG
1To: vim-dev@vim.org
2Subject: Patch 6.3.046
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 6.3.046
11Problem: ":registers" doesn't show multi-byte characters properly.
12 (Valery Kondakoff)
13Solution: Get the length of each character before displaying it.
14Files: src/ops.c
15
16
17*** ../vim-6.3.045/src/ops.c Fri Jul 9 22:21:01 2004
18--- src/ops.c Sat Dec 11 16:11:42 2004
19***************
20*** 3698,3703 ****
21--- 3698,3708 ----
22 int name;
23 int attr;
24 char_u *arg = eap->arg;
25+ #ifdef FEAT_MBYTE
26+ int clen;
27+ #else
28+ # define clen 1
29+ #endif
30
31 if (arg != NULL && *arg == NUL)
32 arg = NULL;
33***************
34*** 3745,3754 ****
35 }
36 for (p = yb->y_array[j]; *p && (n -= ptr2cells(p)) >= 0; ++p)
37 {
38- msg_outtrans_len(p, 1);
39 #ifdef FEAT_MBYTE
40! if (has_mbyte)
41! p += (*mb_ptr2len_check)(p) - 1;
42 #endif
43 }
44 }
45--- 3750,3761 ----
46 }
47 for (p = yb->y_array[j]; *p && (n -= ptr2cells(p)) >= 0; ++p)
48 {
49 #ifdef FEAT_MBYTE
50! clen = (*mb_ptr2len_check)(p);
51! #endif
52! msg_outtrans_len(p, clen);
53! #ifdef FEAT_MBYTE
54! p += clen - 1;
55 #endif
56 }
57 }
58*** ../vim-6.3.045/src/version.c Thu Dec 9 16:41:39 2004
59--- src/version.c Sat Dec 11 16:12:58 2004
60***************
61*** 643,644 ****
62--- 643,646 ----
63 { /* Add new patch number below this line */
64+ /**/
65+ 46,
66 /**/
67
68--
69This planet has -- or rather had -- a problem, which was this: most
70of the people living on it were unhappy for pretty much of the time.
71Many solutions were suggested for this problem, but most of these
72were largely concerned with the movements of small green pieces of
73paper, which is odd because on the whole it wasn't the small green
74pieces of paper that were unhappy.
75 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
76
77 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
78/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
79\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
80 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
This page took 0.086011 seconds and 4 git commands to generate.