mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Ensure active hyperlink is cleared when truncating output for completion descriptions
This commit is contained in:
parent
d4c103e53e
commit
5e880b92f5
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ func (self *Match) FormatForCompletionList(max_word_len int, f *markup.Context,
|
|||
word += strings.Repeat(" ", max_word_len-word_len)
|
||||
}
|
||||
if wcswidth.Stringwidth(desc) > max_desc_len {
|
||||
desc = wcswidth.TruncateToVisualLength(desc, max_desc_len-2) + "\x1b[m…"
|
||||
desc = wcswidth.TruncateToVisualLength(desc, max_desc_len-2) + "\x1b[m\x1b]8;;\x1b\\…"
|
||||
}
|
||||
if multiline {
|
||||
return word + "\n" + strings.Repeat(" ", max_word_len+2) + desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue