PaperMC / PaperMC/diff-viewer

Wrong highlighting for tokens around no newline at EOF marker

Open
#10 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: diff viewer type: bug
Dominant language
TypeScript
Stars
50
Forks
8
Avg merge
1h 38m
Merged PRs (30d)
6

Description

Image

The added/removed highlighting is wrongly affecting the previous token when it's unchanged

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reproducing the screenshot's diff around the no-newline-at-EOF marker and trace the token-highlighting path; done means an unchanged previous token is no longer included in added or removed highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.