aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-09 12:18:45 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-09 12:18:45 +0000
commit2006cf37271812027cdf5659308eec6ff095ed09 (patch)
tree59b6302eadd05216b9977953b0ebb76ff34a39be /Source/SPNarrowDownCompletion.m
parenta896123760846a4e38c5061f335056ca8658d013 (diff)
downloadsequelpro-2006cf37271812027cdf5659308eec6ff095ed09.tar.gz
sequelpro-2006cf37271812027cdf5659308eec6ff095ed09.tar.bz2
sequelpro-2006cf37271812027cdf5659308eec6ff095ed09.zip
• fixed bug in snippet list - now it inserts the chosen item correctly after narrow-down the list
• added chance to invoke the snippet list in fuzzy search mode by the template ¦¦a¦b¦¦ • added new snippet placeholders: ¦$SP_ASLIST_ALL_TABLES¦ displays a list of all tables incl. views from the current db ¦$SP_ASLIST_ALL_DATABASES¦ displays a list of all dbs from the current connection This makes it possible to write eg a query fav: USE ¦¦$SP_ASLIST_ALL_DATABASES¦¦; to search via fuzzy mode for a db and to use it
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 2651024a..d7ac8048 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -750,6 +750,7 @@
- (void)insert_text:(NSString* )aString
{
+
[theView setSelectedRange:theCharRange];
[theView insertText:aString];