diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-09 18:59:29 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-09 18:59:29 +0000 |
commit | 3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e (patch) | |
tree | f0953de6f26a3db5495a0cb402ac9306d39c3784 /Source/CMTextView.m | |
parent | 862bbc1acbf073467019e9198bc78df26335fff4 (diff) | |
download | sequelpro-3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e.tar.gz sequelpro-3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e.tar.bz2 sequelpro-3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e.zip |
• for auto-completion suppress the caret moving inside `foo`|
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r-- | Source/CMTextView.m | 2 |
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 { |