mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 10:51:55 +00:00
Dont output escape strings in descriptions
This commit is contained in:
parent
e3b8de1ac0
commit
a2bb360eec
1 changed files with 1 additions and 5 deletions
|
|
@ -68,7 +68,6 @@ func fmt_desc(word, desc string, max_word_len int, f *markup.Context, screen_wid
|
|||
if wcswidth.Stringwidth(desc) > max_desc_len {
|
||||
desc = wcswidth.TruncateToVisualLength(desc, max_desc_len-2) + "…"
|
||||
}
|
||||
|
||||
if multiline {
|
||||
return word + "\n " + desc
|
||||
}
|
||||
|
|
@ -131,12 +130,9 @@ func zsh_output_serializer(completions []*Completions, shell_state map[string]st
|
|||
ctty.Close()
|
||||
if err == nil {
|
||||
screen_width = int(sz.Col)
|
||||
f = markup.New(true)
|
||||
}
|
||||
}
|
||||
if f == nil {
|
||||
f = markup.New(false)
|
||||
}
|
||||
f = markup.New(false) // ZSH freaks out if there are escape codes in the description strings
|
||||
return serialize(completions[0], f, screen_width)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue