aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-27 17:48:11 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-27 17:48:11 +0000
commit98d651758a14f1675a605000cd1813d7fc64695a (patch)
treed8e5595d6ffdfab8fda7aaebea2f7017d56c6df5 /Source/CustomQuery.m
parent5c01336855fde8694dfe2c9060c7e8f43b61d950 (diff)
downloadsequelpro-98d651758a14f1675a605000cd1813d7fc64695a.tar.gz
sequelpro-98d651758a14f1675a605000cd1813d7fc64695a.tar.bz2
sequelpro-98d651758a14f1675a605000cd1813d7fc64695a.zip
• improved the graphical representation of text macro snippets
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index a02da041..6f8afecf 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -2046,7 +2046,7 @@
// Highlight by setting a background color the current query
// if nothing is selected
- if(qRange.length && !currentSelection.length) {
+ if(qRange.length && !currentSelection.length && ![textView isSnippetMode]) {
if([prefs boolForKey:SPCustomQueryHighlightCurrentQuery]) {
[[textView textStorage] addAttribute: NSBackgroundColorAttributeName
value: [NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorHighlightQueryColor]]