From 3f62dd5ed7d69d239ebcc49b64628d76a7f0f95e Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 9 Mar 2010 18:59:29 +0000 Subject: =?UTF-8?q?=E2=80=A2=20for=20auto-completion=20suppress=20the=20ca?= =?UTF-8?q?ret=20moving=20inside=20`foo`|?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3