@@ -1345,7 +1345,7 @@ export class DeltaBuilder extends Delta {
13451345 */
13461346 insert ( insert , formatting = null , attribution = null ) {
13471347 modDeltaCheck ( this )
1348- const mergedAttributes = mergeAttributions ( this . usedAttributes , formatting )
1348+ const mergedAttributes = mergeFormats ( this . usedAttributes , formatting )
13491349 const mergedAttribution = mergeAttributions ( this . usedAttribution , attribution )
13501350 /**
13511351 * @param {TextOp | InsertOp<any> } lastOp
@@ -1381,7 +1381,7 @@ export class DeltaBuilder extends Delta {
13811381 */
13821382 modify ( modify , formatting = null , attribution = null ) {
13831383 modDeltaCheck ( this )
1384- const mergedAttributes = mergeAttributions ( this . usedAttributes , formatting )
1384+ const mergedAttributes = mergeFormats ( this . usedAttributes , formatting )
13851385 const mergedAttribution = mergeAttributions ( this . usedAttribution , attribution )
13861386 list . pushEnd ( this . children , new ModifyOp ( modify , object . isEmpty ( mergedAttributes ) ? null : mergedAttributes , mergedAttribution ) )
13871387 this . childCnt += 1
@@ -1395,7 +1395,7 @@ export class DeltaBuilder extends Delta {
13951395 */
13961396 retain ( len , format = null , attribution = null ) {
13971397 modDeltaCheck ( this )
1398- const mergedFormats = mergeAttributions ( this . usedAttributes , format )
1398+ const mergedFormats = mergeFormats ( this . usedAttributes , format )
13991399 const mergedAttribution = mergeAttributions ( this . usedAttribution , attribution )
14001400 const lastOp = /** @type {RetainOp|InsertOp<any> } */ ( this . children . end )
14011401 if ( $retainOp . check ( lastOp ) && fun . equalityDeep ( mergedFormats , lastOp . format ) && fun . equalityDeep ( mergedAttribution , lastOp . attribution ) ) {
0 commit comments