diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionHandler.m | 13 | ||||
-rw-r--r-- | Source/SPTextView.m | 6 |
2 files changed, 16 insertions, 3 deletions
diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m index 0bbd4409..29c6e8fe 100644 --- a/Source/SPConnectionHandler.m +++ b/Source/SPConnectionHandler.m @@ -46,10 +46,17 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; @interface SPConnectionController () - (void)_restoreConnectionInterface; + +@end + +@interface SPConnectionController (SPConnectionHandlerPrivateAPI) + - (void)_showConnectionTestResult:(NSString *)resultString; @end +#pragma mark - + @implementation SPConnectionController (SPConnectionHandler) /** @@ -493,6 +500,12 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; } } +@end + +#pragma mark - + +@implementation SPConnectionController (SPConnectionHandlerPrivateAPI) + /** * Display a connection test error or success message */ diff --git a/Source/SPTextView.m b/Source/SPTextView.m index 5e324d28..e7f15e5e 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -1488,7 +1488,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS [possibleCompletions addObject:[NSDictionary dictionaryWithObjectsAndKeys: field, @"display", @"field-small-square", @"image", - [NSString stringWithFormat:@"%@@%%@",currentTable,currentDb], @"path", SPUniqueSchemaDelimiter, + [NSString stringWithFormat:@"%@%@%@", currentTable, SPUniqueSchemaDelimiter, currentDb], @"path", t, @"type", lst, @"list", @"", @"isRef", @@ -1497,7 +1497,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS [possibleCompletions addObject:[NSDictionary dictionaryWithObjectsAndKeys: field, @"display", @"field-small-square", @"image", - [NSString stringWithFormat:@"%@%@%@",currentTable,currentDb], @"path", SPUniqueSchemaDelimiter, + [NSString stringWithFormat:@"%@%@%@", currentTable, SPUniqueSchemaDelimiter, currentDb], @"path", typ, @"type", @"", @"isRef", nil]]; @@ -3252,7 +3252,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS NSUInteger currentSelectionLength = [self selectedRange].length; // If selection started/ended, redraw the background in the current query area - if ([self shouldHiliteQuery] && (currentSelectionLength && !proposedSelRange.length) || (!currentSelectionLength && proposedSelRange.length)) { + if ([self shouldHiliteQuery] && ((currentSelectionLength && !proposedSelRange.length) || (!currentSelectionLength && proposedSelRange.length))) { NSUInteger i = 0, rectCount = 0; NSRect* rectsToUpdate = [[self layoutManager] rectArrayForCharacterRange:[self queryRange] withinSelectedCharacterRange:[self queryRange] |