Ticket #54666: MacVIM-136.diff
File MacVIM-136.diff, 1.4 KB (added by enxio (Clemens Wittinger), 7 years ago) |
---|
-
MacVim/MMBackend.m
old new 1590 1590 NSNumber *key = [NSNumber numberWithInt:port]; 1591 1591 NSMutableArray *replies = [serverReplyDict objectForKey:key]; 1592 1592 if (replies && [replies count]) { 1593 ASLogDebug(@" %ld replies, topmost is: %@", [replies count],1593 ASLogDebug(@" %ld replies, topmost is: %@", (unsigned long) [replies count], 1594 1594 [replies objectAtIndex:0]); 1595 1595 return [replies objectAtIndex:0]; 1596 1596 } … … 2102 2102 modifiers:(int)mods 2103 2103 { 2104 2104 ASLogDebug(@"key='%@' code=%#x mods=%#x length=%ld", key, code, mods, 2105 [key length]);2105 (unsigned long) [key length]); 2106 2106 if (!key) return; 2107 2107 2108 2108 char_u *str = (char_u*)[key UTF8String]; … … 2830 2830 if (range.length > 0) { 2831 2831 // TODO: This only works for encodings where 1 byte == 1 character 2832 2832 cmd = [NSString stringWithFormat:@"<C-\\><C-N>%ldgov%ldgo", 2833 range.location,NSMaxRange(range)-1];2833 (unsigned long) range.location, (long) NSMaxRange(range)-1]; 2834 2834 } else { 2835 2835 cmd = [NSString stringWithFormat:@"<C-\\><C-N>%ldGz.0", 2836 range.location];2836 (unsigned long) range.location]; 2837 2837 } 2838 2838 2839 2839 [self addInput:cmd];