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:
Bjorn Winckler
2008-06-24 20:52:01 +02:00
parent 53f258bb6f
commit 57247ff882
2 changed files with 6 additions and 4 deletions
+5 -1
View File
@@ -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) {
+1 -3
View File
@@ -308,10 +308,8 @@
- (void)setTitle:(NSString *)title
{
if (title) {
if (title)
[decoratedWindow setTitle:title];
[fullscreenWindow setTitle:title];
}
}
- (void)setDocumentFilename:(NSString *)filename