From 73211a19046665d4c3ee66c215a37cd0e5b4c6bd Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 11 Jan 2010 22:30:30 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fix=20for=20i525:=20do=20not=20escape=20the?= =?UTF-8?q?=20\=20for=20\=5F=20or=20\%=20and=20changed=20"contains"=20's?= =?UTF-8?q?=20behaviour=20to=20escape=20=5F=20%=20automatically=20since=20?= =?UTF-8?q?it=20could=20be=20confusing=20to=20the=20user=20because=20it=20?= =?UTF-8?q?uses=20LIKE=20'%...%'=20=E2=80=A2=20reimplemented:=20scroll=20t?= =?UTF-8?q?o=20newly=20added=20row=20in=20Content=20View?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableContent.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Source/TableContent.m') 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]; -- cgit v1.2.3