This commit is contained in:
Kovid Goyal 2024-02-05 20:48:49 +05:30
parent 9bea8bb5bc
commit bc3c9ce2fa
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -178,7 +178,11 @@ func main(_ *cli.Command, o *Options, args []string) (rc int, err error) {
if hint == "" {
hint = " "
}
mark_text = mark_text[len(hint):]
if len(mark_text) <= len(hint) {
mark_text = ""
} else {
mark_text = mark_text[len(hint):]
}
return hint_style(hint) + text_style(mark_text)
}