remove get CharData calls from codebase (beside tests)

This commit is contained in:
Jörg Breitbart
2019-01-05 01:01:10 +01:00
parent b93b774971
commit 62dfa84d5d
8 changed files with 75 additions and 74 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ export class Buffer implements IBuffer {
return [-1, -1];
}
for (let i = 0; i < line.length; ++i) {
stringIndex -= line.get(i)[CHAR_DATA_CHAR_INDEX].length;
stringIndex -= line.getString(i).length;
if (stringIndex < 0) {
return [lineIndex, i];
}