Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge 0fd5b26 into f88c918
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Oct 24, 2018
2 parents f88c918 + 0fd5b26 commit 6d4dfc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default class Writer {
markerRange.end._getCombined( rangeRootPosition, position )
);

this.addMarker( markerName, { range, usingOperation: true } );
this.addMarker( markerName, { range, usingOperation: true, affectsData: true } );
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions tests/model/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ describe( 'Writer', () => {
expect( range.root ).to.equal( root );
expect( range.start.path ).to.deep.equal( [ 2, 1 ] );
expect( range.end.path ).to.deep.equal( [ 2, 5 ] );
expect( range.usingOperation ).to.equal( true );
expect( range.affectsData ).to.equal( true );
} );

it( 'should throw when trying to use detached writer', () => {
Expand Down

0 comments on commit 6d4dfc1

Please sign in to comment.