diff options
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 0a2958ee..f393dc45 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1107,13 +1107,18 @@ */ - (void)doPerformQueryService:(NSString *)query { + [textView shouldChangeTextInRange:NSMakeRange(0, [[textView string] length]) replacementString:query]; [textView setString:query]; + [textView didChangeText]; + [textView scrollRangeToVisible:NSMakeRange([query length], 0)]; [self runAllQueries:self]; } - (void)doPerformLoadQueryService:(NSString *)query { + [textView shouldChangeTextInRange:NSMakeRange(0, [[textView string] length]) replacementString:query]; [textView setString:query]; - // [textView insertText:@""]; + [textView didChangeText]; + [textView scrollRangeToVisible:NSMakeRange([query length], 0)]; } - (NSString *)usedQuery |