diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-13 14:09:56 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-13 14:09:56 +0000 |
commit | 072855c944fb56266961ad5ec61349cd38e4acff (patch) | |
tree | 2f720fe543d0c351d9501c419724d8acc04709c4 /Source/SPQueryController.m | |
parent | 4f2b28e1691c5b64e1768ba7c4797623f61cf0a6 (diff) | |
download | sequelpro-072855c944fb56266961ad5ec61349cd38e4acff.tar.gz sequelpro-072855c944fb56266961ad5ec61349cd38e4acff.tar.bz2 sequelpro-072855c944fb56266961ad5ec61349cd38e4acff.zip |
• improved text macro snippet behaviour
• improved the ability to run bash commands inside of snippets
• ignore most of the syntax highlighting inside snippet declarations
• fixed issue in CMTextView to use obj class variables only to generalise this object
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r-- | Source/SPQueryController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m index 2eddf018..e19a49e5 100644 --- a/Source/SPQueryController.m +++ b/Source/SPQueryController.m @@ -27,6 +27,7 @@ #import "SPConsoleMessage.h" #import "SPArrayAdditions.h" #import "SPConstants.h" +#import "CustomQuery.h" #define MESSAGE_TRUNCATE_CHARACTER_LENGTH 256 #define MESSAGE_TIME_STAMP_FORMAT @"%H:%M:%S" @@ -655,7 +656,7 @@ static SPQueryController *sharedQueryController = nil; if([historyContainer objectForKey:[fileURL absoluteString]]) { NSMutableArray *returnArray = [NSMutableArray arrayWithCapacity:[[historyContainer objectForKey:[fileURL absoluteString]] count]]; NSMenuItem *historyMenuItem; - for(id history in [historyContainer objectForKey:[fileURL absoluteString]]) { + for(NSString* history in [historyContainer objectForKey:[fileURL absoluteString]]) { historyMenuItem = [[[NSMenuItem alloc] initWithTitle:([history length] > 64) ? [NSString stringWithFormat:@"%@…", [history substringToIndex:63]] : history action:NULL keyEquivalent:@""] autorelease]; |