|
|
|
@ -217,8 +217,8 @@ func (d *Document) validate(dl Delta) error { |
|
|
|
|
|
|
|
|
|
lastDlLine := dl.line(dl.nRows() - 1) |
|
|
|
|
|
|
|
|
|
if uint(len(lastDlLine)) != dl.End.Column { |
|
|
|
|
return fmt.Errorf("delta has %d chars on the final line, but positions show range of %d chars", len(lastDlLine), dl.End.Column) |
|
|
|
|
if uint(len(lastDlLine)) != dl.cols() { |
|
|
|
|
return fmt.Errorf("delta has %d chars on the final line, but positions show range of %d chars", len(lastDlLine), dl.cols()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return nil |
|
|
|
|