Fix bug where adding comment on opposite line would error
When adding a comment to the side that doesnβt have changes we force the comment to be added to the opposite side. E.g. adding a comment on the right-hand-side for a deletion will force the comment to be added to the left-hand-side.
π Workflow runs π Branch on GitHub
1 file changed
+10
-8
bb38192b
β
e427af7e
modified src/components/Diff.svelte
@@ -141,32 +141,34 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|