mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user