Commit 9a7d8f5
Fix chunk navigation label reset on Insert/Delete chunks (#27)
* Fix chunk navigation label reset on Insert/Delete chunks
The cursor_position_notify handler (added for cursor tracking) overwrites
current_chunk via chunk_at_cursor() whenever the cursor moves. For Insert
chunks where start_a == end_a, the zero-length range check fails and
current_chunk is set to None, causing the label to show "3 changes"
instead of "Change 3 of 3".
Fix by setting current_chunk AFTER place_cursor_at_line calls so the
correct value persists after the cursor tracking handler runs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* bump to 0.5.2
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4399cd7 commit 9a7d8f5
4 files changed
Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1537 | 1537 | | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | | - | |
1541 | 1540 | | |
1542 | 1541 | | |
1543 | 1542 | | |
1544 | 1543 | | |
1545 | 1544 | | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
1546 | 1548 | | |
1547 | 1549 | | |
1548 | 1550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | | - | |
836 | 835 | | |
837 | 836 | | |
838 | 837 | | |
| |||
852 | 851 | | |
853 | 852 | | |
854 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
855 | 857 | | |
856 | 858 | | |
857 | 859 | | |
| |||
0 commit comments