PatienceDiff icon indicating copy to clipboard operation
PatienceDiff copied to clipboard

Workaround for my 'all removed/all added' example problem from ages back.

Open sleekweasel opened this issue 1 year ago • 0 comments

Hi - I finally worked around to looking at this again.

I found that in findUnique(), Chrome didn't like having Set()s as the Map() keys: they all compared as different, so everything had its own index. Turning them all into strings fixed it for me.

-			let line = arr.slice( i, i + unit );
+			let line = arr.slice( i, i + unit ).join("\n");

I'd offer a for-real patch, but your set-up seems to work for you; odd that it's different for me.

Are you running in Node, and not a browser?

Is this a bug in Chrome's JS, do you think?

sleekweasel avatar Jul 05 '24 00:07 sleekweasel