commit 4ce085c
delthas
·
2022-10-17 12:16:41 +0000 UTC
parent f254040
Fix OSC 8 hyperlink ID format I meant to add 0-padding to avoid spaces.
1 files changed,
+1,
-1
+1,
-1
1@@ -142,7 +142,7 @@ func (s StyledString) ParseURLs() StyledString {
2 if u, err := url.Parse(link); err != nil || u.Scheme == "" {
3 link = "https://" + link
4 }
5- id := fmt.Sprintf("_%10d", rand.Int31())
6+ id := fmt.Sprintf("_%010d", rand.Int31())
7 // find last style starting before or at url begin
8 for ; j < len(s.styles); j++ {
9 st := s.styles[j]