Skip to content

v0.9.11

Choose a tag to compare

@quangdang46 quangdang46 released this 17 Aug 16:25
· 3 commits to main since this release

Hashline v0.9.11

Bug Fixes

  • Fix #106: Translate insert and block anchors through shift table — INS.PRE/INS.POST previously used original line numbers directly as live buffer indices, causing compounding drift in multi-edit patches with inserts at different anchors. Block ops (INS.BLK.PRE/POST, SWAP.BLK, DEL.BLK) had the same defect.

What Changed

  • INS.PRE/INS.POST: translate anchor via shift before computing insert position
  • INS.POST uses insert_count keyed by original anchor for repeated-at-same-anchor stacking
  • Block ops: translate block_start/block_end through shift after resolve_block_span
  • DEL.BLK now removes in descending order

Tests

  • 4 regression tests covering exact reproduction cases from #106

Install

curl -fsSL https://github.com/quangdang46/hashline/releases/latest/install.sh | bash

Full changelog: https://github.com/quangdang46/hashline/blob/main/CHANGELOG.md