summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.010
blob: be0167ae0d7c2287f543f7f8920ba0fd27287a03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
To: vim-dev@vim.org
Subject: Patch 7.3.010
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.010
Problem:    Mac GUI: Missing break statements.
Solution:   Add the break statements. (Dominique Pelle)
Files:	    src/gui_mac.c


*** ../vim-7.3.009/src/gui_mac.c	2010-08-15 21:57:28.000000000 +0200
--- src/gui_mac.c	2010-09-21 17:33:13.000000000 +0200
***************
*** 1480,1486 ****
   *
   *  Returns the index inside the menu wher
   */
!     short /* Shoulde we return MenuItemIndex? */
  gui_mac_get_menu_item_index(vimmenu_T *pMenu)
  {
      short	index;
--- 1480,1486 ----
   *
   *  Returns the index inside the menu wher
   */
!     short /* Should we return MenuItemIndex? */
  gui_mac_get_menu_item_index(vimmenu_T *pMenu)
  {
      short	index;
***************
*** 1823,1829 ****
  	p.h += gui.scrollbar_width;
      if (gui.which_scrollbars[SBAR_RIGHT])
  	p.h += gui.scrollbar_width;
!     /* ideal height is as heigh as we can get */
      p.v = 15 * 1024;
  
      thePart = IsWindowInStandardState(whichWindow, &p, &r)
--- 1823,1829 ----
  	p.h += gui.scrollbar_width;
      if (gui.which_scrollbars[SBAR_RIGHT])
  	p.h += gui.scrollbar_width;
!     /* ideal height is as high as we can get */
      p.v = 15 * 1024;
  
      thePart = IsWindowInStandardState(whichWindow, &p, &r)
***************
*** 4481,4487 ****
  	 * event arrives.  No need to check for input_buf_full because we are
  	 * returning as soon as it contains a single char.
  	 */
! 	/* TODO: reduce wtime accordinly???  */
  	if (wtime > -1)
  	    sleeppyTick = 60 * wtime / 1000;
  	else
--- 4481,4487 ----
  	 * event arrives.  No need to check for input_buf_full because we are
  	 * returning as soon as it contains a single char.
  	 */
! 	/* TODO: reduce wtime accordingly???  */
  	if (wtime > -1)
  	    sleeppyTick = 60 * wtime / 1000;
  	else
***************
*** 5723,5735 ****
      iconDITL = GetResource('DITL', 131);
      switch (type)
      {
! 	case VIM_GENERIC:  useIcon = kNoteIcon;
! 	case VIM_ERROR:    useIcon = kStopIcon;
! 	case VIM_WARNING:  useIcon = kCautionIcon;
! 	case VIM_INFO:     useIcon = kNoteIcon;
! 	case VIM_QUESTION: useIcon = kNoteIcon;
! 	default:      useIcon = kStopIcon;
!     };
      AppendDITL(theDialog, iconDITL, overlayDITL);
      ReleaseResource(iconDITL);
      GetDialogItem(theDialog, iconItm.idx, &itemType, &itemHandle, &box);
--- 5723,5735 ----
      iconDITL = GetResource('DITL', 131);
      switch (type)
      {
! 	case VIM_GENERIC:
! 	case VIM_INFO:
! 	case VIM_QUESTION: useIcon = kNoteIcon; break;
! 	case VIM_WARNING:  useIcon = kCautionIcon; break;
! 	case VIM_ERROR:    useIcon = kStopIcon; break;
! 	default:           useIcon = kStopIcon;
!     }
      AppendDITL(theDialog, iconDITL, overlayDITL);
      ReleaseResource(iconDITL);
      GetDialogItem(theDialog, iconItm.idx, &itemType, &itemHandle, &box);
***************
*** 5892,5898 ****
  
      return itemHit;
  /*
!  * Usefull thing which could be used
   * SetDialogTimeout(): Auto click a button after timeout
   * SetDialogTracksCursor() : Get the I-beam cursor over input box
   * MoveDialogItem():	    Probably better than SetDialogItem
--- 5892,5898 ----
  
      return itemHit;
  /*
!  * Useful thing which could be used
   * SetDialogTimeout(): Auto click a button after timeout
   * SetDialogTracksCursor() : Get the I-beam cursor over input box
   * MoveDialogItem():	    Probably better than SetDialogItem
***************
*** 6100,6106 ****
  #endif
  
  /*
!  * Transfered from os_mac.c for MacOS X using os_unix.c prep work
   */
  
      int
--- 6100,6106 ----
  #endif
  
  /*
!  * Transferred from os_mac.c for MacOS X using os_unix.c prep work
   */
  
      int
***************
*** 6543,6549 ****
  static ControlRef dataBrowser = NULL;
  
  // when the tabline is hidden, vim doesn't call update_tabline(). When
! // the tabline is shown again, show_tabline() is called before upate_tabline(),
  // and because of this, the tab labels and vims internal tabs are out of sync
  // for a very short time. to prevent inconsistent state, we store the labels
  // of the tabs, not pointers to the tabs (which are invalid for a short time).
--- 6543,6549 ----
  static ControlRef dataBrowser = NULL;
  
  // when the tabline is hidden, vim doesn't call update_tabline(). When
! // the tabline is shown again, show_tabline() is called before update_tabline(),
  // and because of this, the tab labels and vims internal tabs are out of sync
  // for a very short time. to prevent inconsistent state, we store the labels
  // of the tabs, not pointers to the tabs (which are invalid for a short time).
*** ../vim-7.3.009/src/version.c	2010-09-21 17:29:19.000000000 +0200
--- src/version.c	2010-09-21 17:33:22.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     10,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
182. You may not know what is happening in the world, but you know
     every bit of net-gossip there is.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///