fix(diff): return content of the line with correct length

This commit is contained in:
Aleksey Kulikov 2021-12-09 20:57:37 +03:00
parent 2009c76b50
commit 7dd433dc08

View file

@ -399,8 +399,9 @@ class DiffLine {
int get contentOffset => _diffLinePointer.ref.content_offset; int get contentOffset => _diffLinePointer.ref.content_offset;
/// Content of the diff line. /// Content of the diff line.
String get content => String get content => _diffLinePointer.ref.content
_diffLinePointer.ref.content.cast<Utf8>().toDartString(); .cast<Utf8>()
.toDartString(length: _diffLinePointer.ref.content_len);
@override @override
String toString() { String toString() {