Skip to content

Commit

Permalink
Merge pull request #13 from lemo-nade-room/develop
Browse files Browse the repository at this point in the history
Add support for highlighting removed lines
  • Loading branch information
lemo-nade-room authored Jun 10, 2024
2 parents 700dffa + 40a95d6 commit 75ebb5b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/ui/Highlighted.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
<div class="scroll svelte-diff-highlighting">
<p class="highlighted" translate="no">
{#each lines as line, i}
{#if i === 0}
{@const removed = removeds.find((removed) => removed.afterNewLineNumber === 0)}
{#if removed !== undefined}
<span class="removed">
<HighlightedRemovedLines
{oldLines}
{removed}
{setNumber}
maxNumberDigitCount={maxDigitCount}
/>
</span>
{/if}
{/if}
{@const lineNumber = i + 1}
<span class="line">
<HighlightedLine
Expand Down

0 comments on commit 75ebb5b

Please sign in to comment.