Restrict diff line selection to only existing sides
Instead of allowing users to click on left and right side of diff lines, we only should allow people to select on the available side.
If we have README.md:L1 but no R1 we shouldn’t allow users to write a comment on README.md:R1 since this will fail.
1 file changed
+6
-2
f0ef0872
→
8c4de52b
modified src/components/Diff.svelte
@@ -359,7 +359,9 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -372,7 +374,9 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|