aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-09 18:59:29 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-09 18:59:29 +0000
commit3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e (patch)
treef0953de6f26a3db5495a0cb402ac9306d39c3784
parent862bbc1acbf073467019e9198bc78df26335fff4 (diff)
downloadsequelpro-3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e.tar.gz
sequelpro-3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e.tar.bz2
sequelpro-3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e.zip
• for auto-completion suppress the caret moving inside `foo`|
-rw-r--r--Source/CMTextView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 7fb6ceee..51b2f580 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -508,7 +508,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
BOOL caretMovedLeft = NO;
// Check if caret is located after a ` - if so move caret inside
- if([[self string] length] && caretPos > 0 && [[self string] characterAtIndex:caretPos-1] == '`') {
+ if(!autoCompleteMode && [[self string] length] && caretPos > 0 && [[self string] characterAtIndex:caretPos-1] == '`') {
if([[self string] length] > caretPos && [[self string] characterAtIndex:caretPos] == '`') {
;
} else {