mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Open window no longer has rows&columns as paramters.
git-svn-id: http://macvim.googlecode.com/svn/trunk@48 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@
|
||||
- (void)setDefaultColorsBackground:(int)bg foreground:(int)fg;
|
||||
|
||||
- (BOOL)checkin;
|
||||
- (BOOL)openVimWindowWithRows:(int)rows columns:(int)cols;
|
||||
- (BOOL)openVimWindow;
|
||||
- (void)clearAll;
|
||||
- (void)clearBlockFromRow:(int)row1 column:(int)col1
|
||||
toRow:(int)row2 column:(int)col2;
|
||||
|
||||
+2
-8
@@ -199,7 +199,7 @@ static int eventButtonNumberToVimMouseButton(int buttonNumber);
|
||||
#endif
|
||||
}
|
||||
|
||||
- (BOOL)openVimWindowWithRows:(int)rows columns:(int)cols
|
||||
- (BOOL)openVimWindow
|
||||
{
|
||||
#if !MM_USE_DO
|
||||
if (!sendPort) {
|
||||
@@ -228,13 +228,7 @@ static int eventButtonNumberToVimMouseButton(int buttonNumber);
|
||||
}
|
||||
#endif // !MM_USE_DO
|
||||
|
||||
NSMutableData *data = [NSMutableData data];
|
||||
|
||||
[data appendBytes:&rows length:sizeof(int)];
|
||||
[data appendBytes:&cols length:sizeof(int)];
|
||||
|
||||
[self queueMessage:OpenVimWindowMsgID data:data];
|
||||
|
||||
[self queueMessage:OpenVimWindowMsgID data:nil];
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -115,8 +115,7 @@ gui_mch_open(void)
|
||||
{
|
||||
//NSLog(@"gui_mch_open()");
|
||||
|
||||
return [[MMBackend sharedInstance]
|
||||
openVimWindowWithRows:gui.num_rows columns:gui.num_cols];
|
||||
return [[MMBackend sharedInstance] openVimWindow];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user