diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableContent.m | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index 7a034c5f..7f8f5ab4 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -881,7 +881,7 @@ NSMutableString *arg = [[NSMutableString alloc] init]; [arg setString:argument]; - [arg replaceOccurrencesOfRegex:@"(\\\\)(?![nrt])" withString:@"\\\\\\\\\\\\\\\\"]; + [arg replaceOccurrencesOfRegex:@"(\\\\)(?![nrt_%])" withString:@"\\\\\\\\\\\\\\\\"]; [arg flushCachedRegexData]; [arg replaceOccurrencesOfRegex:@"(\\\\)(?=[nrt])" withString:@"\\\\\\"]; [arg flushCachedRegexData]; @@ -893,10 +893,10 @@ [arg replaceOccurrencesOfRegex:[NSString stringWithFormat:@"(%@)", quoteSign] withString:@"\\\\$1"]; [arg flushCachedRegexData]; } - if([clause isMatchedByRegex:@"(?i)\\blike\\b.*?%(?!@)"]) { - [arg replaceOccurrencesOfRegex:@"([_%])" withString:@"\\\\$1"]; - [arg flushCachedRegexData]; - } + // if([clause isMatchedByRegex:@"(?i)\\blike\\b.*?%(?!@)"]) { + // [arg replaceOccurrencesOfRegex:@"([_%])" withString:@"\\\\$1"]; + // [arg flushCachedRegexData]; + // } return [arg autorelease]; } @@ -1236,6 +1236,7 @@ [tableContentView reloadData]; [tableContentView selectRowIndexes:[NSIndexSet indexSetWithIndex:[tableContentView numberOfRows]-1] byExtendingSelection:NO]; + [tableContentView scrollRowToVisible:[tableContentView selectedRow]]; isEditingRow = YES; isEditingNewRow = YES; currentlyEditingRow = [tableContentView selectedRow]; |