Side-by-side semantic diff tool with theme support and hookable integration
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: prevent panic in fitName when terminal width is not yet initialized

+14
+6
CHANGELOG.md
··· 2 2 3 3 ## [0.5.0] - 2026-04-28 4 4 5 + ### Bug Fixes 6 + 7 + - Strip v prefix from VERSION written by bump-version 8 + - Prevent panic in fitName when terminal width is not yet initialized 9 + 5 10 ### Features 6 11 7 12 - Character-level diff highlights ··· 9 14 ### Miscellaneous Tasks 10 15 11 16 - Add version bumper 17 + - Update versi bumper to update `VERSION` and CHANGELOG.md 12 18 13 19 ## [0.4.0] - 2026-04-28 14 20
docs/screenshot.png

This is a binary file and will not be displayed.

+2
flake.nix
··· 159 159 echo "VERSION bumped to $new" 160 160 ${pkgs.lib.getExe pkgs.git-cliff} --tag "$new" --output CHANGELOG.md 161 161 echo "CHANGELOG.md updated" 162 + git tag -a "$new" -m "Release $new" 163 + echo "Tagged $new" 162 164 ''); 163 165 }; 164 166
+6
main.go
··· 500 500 501 501 // fitName truncates or pads s to exactly width runes. 502 502 func fitName(s string, width int) string { 503 + if width <= 0 { 504 + return "" 505 + } 503 506 runes := []rune(s) 504 507 if len(runes) > width { 508 + if width == 1 { 509 + return "…" 510 + } 505 511 return string(runes[:width-1]) + "…" 506 512 } 507 513 return s + strings.Repeat(" ", width-len(runes))