aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 142663bd..8e891b20 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -2185,7 +2185,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
//initialise flex
yyuoffset = textRange.location; yyuleng = 0;
- yy_switch_to_buffer(yy_scan_string([[[self string] substringWithRange:textRange] UTF8String]));
+ // yy_switch_to_buffer(yy_scan_string([[[self string] substringWithRange:textRange] UTF8String]));
+ yy_switch_to_buffer(yy_scan_string(NSStringUTF8String([[self string] substringWithRange:textRange])));
//now loop through all the tokens
while (token=yylex()){