aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-05 15:42:28 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-05 15:42:28 +0000
commit666b48284293e8555b4604745a7abdcf5e01b22a (patch)
tree1e243e13e45025adb7f6b3a6a06f381a778b9893 /Source/CMTextView.m
parentd63dff9e7b9f88799b5fa753c8a3510404aa17b8 (diff)
downloadsequelpro-666b48284293e8555b4604745a7abdcf5e01b22a.tar.gz
sequelpro-666b48284293e8555b4604745a7abdcf5e01b22a.tar.bz2
sequelpro-666b48284293e8555b4604745a7abdcf5e01b22a.zip
• CSV Import Field Mapper
- removed Advanced sheet, instead resize the main sheet and display these settings in it - added advanced options LOW/HIGH_PRIORITY - improved logic for adv. settings, disabling UPDATE if target table has less than 2 fields, etc. - fixed URL for displaying the source file name - removed Help text since it's too large - should be go to the general help • CMTextView - fixed bug if ESC Completion is invoked if caret position is 0 • fixed document URL handling to come up with the correct icons etc.
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 4a226ef5..d6a1e9d7 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -507,7 +507,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] && [[self string] characterAtIndex:caretPos-1] == '`') {
+ if([[self string] length] && caretPos > 0 && [[self string] characterAtIndex:caretPos-1] == '`') {
if([[self string] length] > caretPos && [[self string] characterAtIndex:caretPos] == '`') {
;
} else {