mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
- Status line shows 'title' text on :browse - Status line shows dimensions when user drags/zooms the window
git-svn-id: http://macvim.googlecode.com/svn/trunk@30 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
@@ -184,6 +184,8 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag)
|
||||
title:(in bycopy NSString *)title
|
||||
saving:(int)saving
|
||||
{
|
||||
[windowController setStatusText:title];
|
||||
|
||||
if (saving) {
|
||||
[[NSSavePanel savePanel] beginSheetForDirectory:dir file:nil
|
||||
modalForWindow:[windowController window]
|
||||
@@ -784,6 +786,8 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag)
|
||||
- (void)panelDidEnd:(NSSavePanel *)panel code:(int)code context:(void *)context
|
||||
{
|
||||
#if MM_USE_DO
|
||||
[windowController setStatusText:@""];
|
||||
|
||||
NSString *string = (code == NSOKButton) ? [panel filename] : nil;
|
||||
[backendProxy setBrowseForFileString:string];
|
||||
#else
|
||||
|
||||
@@ -891,6 +891,10 @@ NSMutableArray *buildMenuAddress(NSMenu *menu)
|
||||
// Text storage dimensions changed, notify the VimTask.
|
||||
int dim[2];
|
||||
[textStorage getMaxRows:&dim[0] columns:&dim[1]];
|
||||
|
||||
NSString *sdim = [NSString stringWithFormat:@"%dx%d", dim[1], dim[0]];
|
||||
[self flashStatusText:sdim];
|
||||
|
||||
//NSLog(@"Notify Vim that text storage dimensions changed to %dx%d",
|
||||
// dim[0], dim[1]);
|
||||
NSData *data = [NSData dataWithBytes:dim length:2*sizeof(int)];
|
||||
|
||||
Reference in New Issue
Block a user