]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.003
- use _desktopdir macro
[packages/vim.git] / 6.2.003
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.003
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.003
11 Problem:    GTK 2: double-wide characters below 256 are not displayed
12             correctly.
13 Solution:   Check the cell width for characters above 127. (Yasuhiro
14             Matsumoto)
15 Files:      src/gui_gtk_x11.c
16
17
18 *** ../vim-6.2.002/src/gui_gtk_x11.c    Sat May 31 17:21:37 2003
19 --- src/gui_gtk_x11.c   Mon Jun  2 20:31:54 2003
20 ***************
21 *** 4905,4914 ****
22   
23         if (start == NULL)
24         {
25 !           if (uc >= 0x100 && utf_char2cells(uc) == 2)
26                 start = p;
27         }
28 !       else if (uc < 0x100 /* optimization shortcut */
29                  || (utf_char2cells(uc) != 2 && !utf_iscomposing(uc)))
30         {
31             INSERT_PANGO_ATTR(pango_attr_font_desc_new(gui.wide_font),
32 --- 4905,4914 ----
33   
34         if (start == NULL)
35         {
36 !           if (uc >= 0x80 && utf_char2cells(uc) == 2)
37                 start = p;
38         }
39 !       else if (uc < 0x80 /* optimization shortcut */
40                  || (utf_char2cells(uc) != 2 && !utf_iscomposing(uc)))
41         {
42             INSERT_PANGO_ATTR(pango_attr_font_desc_new(gui.wide_font),
43 ***************
44 *** 4952,4958 ****
45       for (p = s + start; p < s + end; p += utf_byte2len(*p))
46       {
47         uc = utf_ptr2char(p);
48 !       if (uc < 0x100)
49             ++cellcount;
50         else if (!utf_iscomposing(uc))
51             cellcount += utf_char2cells(uc);
52 --- 4952,4958 ----
53       for (p = s + start; p < s + end; p += utf_byte2len(*p))
54       {
55         uc = utf_ptr2char(p);
56 !       if (uc < 0x80)
57             ++cellcount;
58         else if (!utf_iscomposing(uc))
59             cellcount += utf_char2cells(uc);
60 *** ../vim-6.2.002/src/version.c        Mon Jun  2 22:01:43 2003
61 --- src/version.c       Mon Jun  2 22:15:19 2003
62 ***************
63 *** 632,633 ****
64 --- 632,635 ----
65   {   /* Add new patch number below this line */
66 + /**/
67 +     3,
68   /**/
69
70 -- 
71 hundred-and-one symptoms of being an internet addict:
72 59. Your wife says communication is important in a marriage...so you buy
73     another computer and install a second phone line so the two of you can
74     chat.
75
76  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
77 ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
78 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
79  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
This page took 0.028601 seconds and 3 git commands to generate.