Notifying MacVim when SetTextDimensionsMsgID received.

git-svn-id: http://macvim.googlecode.com/svn/trunk@44 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-08-01 06:48:05 +00:00
parent 2c5b0aa100
commit bce6dd3d60
+6
View File
@@ -986,6 +986,12 @@ static int eventButtonNumberToVimMouseButton(int buttonNumber);
int rows = *((int*)bytes); bytes += sizeof(int);
int cols = *((int*)bytes); bytes += sizeof(int);
// NOTE! Vim doesn't call gui_mch_set_shellsize() after
// gui_resize_shell(), so we have to manually set the rows and columns
// here. (MacVim doesn't change the rows and columns to avoid
// inconsistent states between Vim and MacVim.)
[self setRows:rows columns:cols];
//NSLog(@"[VimTask] Resizing shell to %dx%d.", cols, rows);
gui_resize_shell(cols, rows);
} else if (ExecuteMenuMsgID == msgid) {