diff options
author | delthas <delthas@dille.cc> | 2022-10-17 14:16:41 +0200 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-10-17 14:16:41 +0200 |
commit | 4ce085cccba3fa92ac77826c3ccb729a87b5cd6d (patch) | |
tree | 35bb568f583d18ea134a461a9838f1036066bee0 | |
parent | Add OSC 8 hyperlink IDs (diff) |
Fix OSC 8 hyperlink ID format
I meant to add 0-padding to avoid spaces.
-rw-r--r-- | ui/style.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/style.go b/ui/style.go index 506a03d..aa6683a 100644 --- a/ui/style.go +++ b/ui/style.go @@ -142,7 +142,7 @@ func (s StyledString) ParseURLs() StyledString { if u, err := url.Parse(link); err != nil || u.Scheme == "" { link = "https://" + link } - id := fmt.Sprintf("_%10d", rand.Int31()) + id := fmt.Sprintf("_%010d", rand.Int31()) // find last style starting before or at url begin for ; j < len(s.styles); j++ { st := s.styles[j] |