aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-11 12:42:00 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-11 12:42:00 +0000
commitf4c56bb02798ebfbbaba7e7f182843b72f276264 (patch)
tree9821d504fcbd7f99734a24d411d4516fb83ff20c /Source/SPNarrowDownCompletion.m
parent22028889fba4e487d132b4c42f8a22df5922a5c8 (diff)
downloadsequelpro-f4c56bb02798ebfbbaba7e7f182843b72f276264.tar.gz
sequelpro-f4c56bb02798ebfbbaba7e7f182843b72f276264.tar.bz2
sequelpro-f4c56bb02798ebfbbaba7e7f182843b72f276264.zip
• fix table name encoding problem (return name can be NSNull) which can arise while SPTablesList updateTables method,
• added [theView breakUndoCoalescing]; before inserting the grey completion suggestion due to possible undo exceptions
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index 81f4e28b..f86c66c5 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -953,6 +953,7 @@
NSString* toInsert = [curMatch substringFromIndex:[originalFilterString length]];
theCharRange.length += [toInsert length] - currentAutocompleteLength;
theParseRange.length += [toInsert length];
+ [theView breakUndoCoalescing];
[theView insertText:[toInsert lowercaseString]];
autocompletePlaceholderWasInserted = YES;