mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
fix(diff): return content of the line with correct length
This commit is contained in:
parent
2009c76b50
commit
7dd433dc08
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue