Skip to content

Commit f0f5c22

Browse files
committed
Make refined completion menu compile with TextMate build framework
1 parent 7eb9c4d commit f0f5c22

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
File renamed without changes.
File renamed without changes.

Commands/popup/MenuWindowView.mm

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
#import <algorithm>
1313

1414
#define TEXT_INDENT 25
15-
typedef float CGFloat;
15+
/*typedef float CGFloat;
1616
CGRect NSRectToCGRect(NSRect nsrect) {
1717
return (*(CGRect *)&(nsrect));
1818
}
1919
NSRect NSRectFromCGRect(CGRect cgrect) {
2020
return (*(NSRect *)&(cgrect));
2121
}
22-
22+
*/
2323
int cap (int min, int val, int max)
2424
{
2525
return std::min(max, std::max(val, min));
@@ -221,7 +221,7 @@ - (void)reloadData
221221
{
222222
NSRect frame = [[self window] frame];
223223
frame.size.width = [self maxItemWidth] + TEXT_INDENT;
224-
visibleItemsCount = std::min([[self items] count], (unsigned int)MAX_VISIBLE_ROWS);
224+
visibleItemsCount = std::min((unsigned int)[[self items] count], (unsigned int)MAX_VISIBLE_ROWS);
225225
// if rect is zero height drawRect->updatePosition isn't called
226226
if(visibleItemsCount == 0) {
227227
selectedItem = nil;

Commands/popup/TMDIncrementalPopUpMenu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66

77
#import <Cocoa/Cocoa.h>
8-
#import "CLIProxy.h"
8+
#import "../../CLIProxy.h"
99
#import "DocPopup.h"
1010

1111
#define MAX_ROWS 15

0 commit comments

Comments
 (0)