Skip to content

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

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

editor: Fix relative line numbering with deleted blocks present (#49656) (cherry-pick to stable)#49658
zed-zippy[bot] merged 1 commit intov0.224.xfrom
cherry-pick-v0.224.x-be26e1a2

Conversation

@zed-zippy
Copy link
Contributor

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

Cherry-pick of #49656 to stable


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.
@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 d5a2495 into v0.224.x Feb 19, 2026
51 of 53 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.224.x-be26e1a2 branch February 19, 2026 21:51
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