File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 117117## 0.2.8
118118
119119* Fix: Large files crash
120- * Enhancement: Batched highlighting
120+ * Enhancement: Batched highlighting
121+
122+ ## 0.2.9
123+
124+ * Fix: Removed grapheme characters
Original file line number Diff line number Diff line change @@ -377,10 +377,7 @@ class CodeCrafterController extends TextEditingController {
377377 for (int lineIdx = 0 ; lineIdx < nodeLines.length; lineIdx++ ) {
378378 final line = nodeLines[lineIdx];
379379 final startOfLineOffset = offset;
380- final lineChars = line.characters;
381- offset +=
382- lineChars.length + (lineIdx == nodeLines.length - 1 ? 0 : 1 );
383-
380+ offset += line.length + (lineIdx == nodeLines.length - 1 ? 0 : 1 );
384381 final match = RegExp (r'^(\s*)' ).firstMatch (line);
385382 final leading = match? .group (0 ) ?? '' ;
386383 final indentLen = leading.length;
@@ -392,9 +389,9 @@ class CodeCrafterController extends TextEditingController {
392389 String accumulatedText = '' ;
393390 TextStyle ? currentStyle;
394391
395- for (int col = 0 ; col < lineChars .length; col++ ) {
392+ for (int col = 0 ; col < line .length; col++ ) {
396393 final globalIdx = startOfLineOffset + col;
397- String ch = lineChars. elementAt ( col) ;
394+ String ch = line[ col] ;
398395 if (ch == ' ' && guideCols.contains (col)) ch = '│' ;
399396
400397 final bool isMatch = globalIdx == b1 || globalIdx == b2;
Original file line number Diff line number Diff line change 11name : flutter_code_crafter
22description : " Powerful code editor with AI code completion and LSP support"
3- version : 0.2.8
3+ version : 0.2.9
44homepage : https://github.com/heckmon/flutter_code_crafter
55
66environment :
7- sdk : ^3.8.1
7+ sdk : ^3.9.0
88 flutter : " >=1.17.0"
99
1010dependencies :
You can’t perform that action at this time.
0 commit comments