the reproducible bug code and example can be viewed here online.
issue
- I want to show diff view for two texts; the new text only append some text with new line in it.
- the diff view is expected to show only one added green new line without deleted red old line
- Could you please update the diff algorithm to correct this?
const doc = `line11
line12
line13
line14
line15
examples are strings with op
new line after will highlight current line`;
const docAppended = doc+'\nSix';
const editor = new EditorView({
extensions: [
basicSetup,
unifiedMergeView({
original: doc,
gutter: true,
highlightChanges: false,
syntaxHighlightDeletions: true,
mergeControls: false,
}),
],
doc: docAppended,
parent: document.body
});