Commit 17d47d9
committed
fix: skip pixel model-line alignment on Emacs <29
`string-pixel-width' and `buffer-text-pixel-size' are both Emacs 29+.
Remove dead `buffer-text-pixel-size' branch and skip pixel
right-alignment on 28.x, where `string-width' fallback would push
right segments past the window edge. Guard pixel-specific tests.1 parent b12e409 commit 17d47d9
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2595 | 2595 | | |
2596 | 2596 | | |
2597 | 2597 | | |
2598 | | - | |
2599 | | - | |
| 2598 | + | |
2600 | 2599 | | |
2601 | 2600 | | |
2602 | 2601 | | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | | - | |
2607 | 2602 | | |
2608 | 2603 | | |
2609 | 2604 | | |
| |||
2629 | 2624 | | |
2630 | 2625 | | |
2631 | 2626 | | |
2632 | | - | |
| 2627 | + | |
| 2628 | + | |
2633 | 2629 | | |
2634 | 2630 | | |
2635 | 2631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
| 991 | + | |
| 992 | + | |
991 | 993 | | |
992 | 994 | | |
993 | 995 | | |
| |||
997 | 999 | | |
998 | 1000 | | |
999 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
1000 | 1004 | | |
1001 | 1005 | | |
1002 | 1006 | | |
| |||
1005 | 1009 | | |
1006 | 1010 | | |
1007 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
1008 | 1014 | | |
1009 | 1015 | | |
1010 | 1016 | | |
| |||
0 commit comments