Comments (5)
I think I know how to fix, but Iām currently travelling so I could get to it in a few days.
Possibly related to #1
from ace-diff.
hmm. nope. that didnt fix the issue. I still get a new difference after copying. It's like it's not initially detecting the blank line as a difference and then once the first difference is resolved then it detects it as a difference. Maybe something to do with the diff simplifier?
from ace-diff.
Still travelling, but managed to create the smallest possible repro:
start
something else
end
and
starts
mid
end
I will be looking into why this is happening. Pushed the branch here for now https://github.com/ace-diff/ace-diff/tree/JackuB/merge-with-newlines
from ace-diff.
The issue is with newlines - if you look at the raw output from https://github.com/JackuB/diff-match-patch there is \nend
(0
means no change, so it's not part of the patch that's applied)
If you manually move the \n
to the previous line 42b957e it would fix the diffing, as now the newline will be part of the patch.
I think it might be related to this behaviour:
Lines 494 to 497 in 42b957e
from ace-diff.
from ace-diff.
Related Issues (20)
- The automated release is failing šØ
- New release
- Can we Integrate Ace diff in Angular 13
- Internal server error : merge error HOT 1
- hide left/right/middle option? HOT 1
- Support ace-builds (instead of/in addition to) brace HOT 3
- Options for synchronous scrolling HOT 2
- Range module acequire fail HOT 3
- Warning from webpack when using ace-diff 3 HOT 3
- Getting "Uncaught RangeError: Maximum call stack size exceeded" with boiler-plate code HOT 5
- Range is not a constructor HOT 5
- Changing the height of the ace diff editors? HOT 1
- Only one diff but the whole file is marked as diff
- Did you find solution?
- Gutter SVG Path Wrong On Ace 1.4.12 With Ace-Diff 3.0.3 HOT 1
- Use to only highlight differences between two ace instances HOT 1
- Potential security issue
- Strange merging behavior with brackets or indents HOT 1
- How to prevent changes in both editors? HOT 1
- Codat.Public.Api.Models.Clients.ClientSettingsModelpF7mIY6bNkb1B0hz2K4PiCn2XRwTGlwlJGu1eeaU
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ace-diff.