OSDN Git Service

vim-app fix transparency cocoa
[splhack/MacPorts.git] / editors / vim-app / files / patch-option-cocoa.c
1 --- src/option.c.orig
2 +++ src/option.c
3 @@ -2563,7 +2563,7 @@
4  #else
5                              (char_u *)NULL, PV_NONE,
6  #endif
7 -                            {(char_u *)0L, (char_u *)0L} },
8 +                            {(char_u *)255L, (char_u *)0L} },
9      {"ttimeout",    NULL,   P_BOOL|P_VI_DEF|P_VIM,
10                             (char_u *)&p_ttimeout, PV_NONE,
11                             {(char_u *)FALSE, (char_u *)0L}},
12 @@ -8004,15 +8004,14 @@
13  #endif
14  
15  #if defined(FEAT_GUI_COCOA)
16 -     /* 'transparency' is a number between 0 and 100 */
17 +     /* 'transparency' is a number between 1 and 255 */
18      else if (pp == &p_transp)
19      {
20 -        if (p_transp < 0 || p_transp > 100)
21 +        if (p_transp < 1 || p_transp > 255)
22          {
23 -            errmsg = e_invarg;
24 -            p_transp = old_value;
25 +            p_transp = 255;
26          }
27 -        else if (gui.in_use)
28 +        if (gui.in_use)
29              gui_mch_new_colors();
30      }
31  #endif