Skip to content

editor: Fix relative line numbering with deleted blocks present (#49656) (cherry-pick to preview) - #49657

Merged
zed-zippy[bot] merged 1 commit into
v0.225.xfrom
cherry-pick-v0.225.x-be26e1a2
Feb 19, 2026
Merged

editor: Fix relative line numbering with deleted blocks present (#49656) (cherry-pick to preview)#49657
zed-zippy[bot] merged 1 commit into
v0.225.xfrom
cherry-pick-v0.225.x-be26e1a2

Conversation

@zed-zippy

@zed-zippy zed-zippy Bot commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of #49656 to preview


This tackles another issue where we would incorrectly show two absolute
line numbers with relative line numbering enabled when it really should
only have been the current active line number.

Sadly, no tests rn for this as we would need a better test infra for
that to properly catch/test this bug. But with the refactored logic, I
think this is easier to understand at glance, so at least theres that

Release Notes:

  • Fixed an issue with relative line numbers where some rows would be
    missing their relative line number with deleted hunks showing.

This tackles another issue where we would incorrectly show two absolute
line numbers with relative line numbering enabled when it really should
only have been the current active line number.

Sadly, no tests rn for this as we would need a better test infra for
that to properly catch/test this bug. But with the refactored logic, I
think this is easier to understand at glance, so at least theres that

Release Notes:

- Fixed an issue with relative line numbers where some rows would be
missing their relative line number with deleted hunks showing.
@zed-zippy
zed-zippy Bot requested a review from a team as a code owner February 19, 2026 21:34
@zed-zippy
zed-zippy Bot requested review from cole-miller and dinocosta and removed request for a team February 19, 2026 21:34
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Feb 19, 2026
@zed-community-bot zed-community-bot Bot added the bot Pull requests authored by a bot label Feb 19, 2026
@zed-zippy
zed-zippy Bot merged commit e4c951c into v0.225.x Feb 19, 2026
37 checks passed
@zed-zippy
zed-zippy Bot deleted the cherry-pick-v0.225.x-be26e1a2 branch February 19, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant