mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Don't respond to SetWindowTitleMsgID message in live resize
Responding to these messages would clobber the text dimension title that is set during live resize.
This commit is contained in:
@@ -682,7 +682,11 @@ static BOOL isUnsafeMessage(int msgid);
|
||||
NSString *string = [[NSString alloc] initWithBytes:(void*)bytes
|
||||
length:len encoding:NSUTF8StringEncoding];
|
||||
|
||||
[windowController setTitle:string];
|
||||
// While in live resize the window title displays the dimensions of the
|
||||
// window so don't clobber this with a spurious "set title" message
|
||||
// from Vim.
|
||||
if (![[windowController vimView] inLiveResize])
|
||||
[windowController setTitle:string];
|
||||
|
||||
[string release];
|
||||
} else if (SetDocumentFilenameMsgID == msgid) {
|
||||
|
||||
@@ -308,10 +308,8 @@
|
||||
|
||||
- (void)setTitle:(NSString *)title
|
||||
{
|
||||
if (title) {
|
||||
if (title)
|
||||
[decoratedWindow setTitle:title];
|
||||
[fullscreenWindow setTitle:title];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setDocumentFilename:(NSString *)filename
|
||||
|
||||
Reference in New Issue
Block a user