mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Dont add formatting escape codes to completion descriptions in ZSH
ZSH gets confused by them, causes the text to move up a line when completing after the first line
This commit is contained in:
@@ -222,7 +222,6 @@ def zsh_output_serializer(ans: Completions) -> str:
|
|||||||
desc = desc[:truncate_point_for_length(desc, max_desc_len - 2)]
|
desc = desc[:truncate_point_for_length(desc, max_desc_len - 2)]
|
||||||
desc += '…'
|
desc += '…'
|
||||||
|
|
||||||
word = f'\x1b[32m{word}\x1b[39m'
|
|
||||||
if multiline:
|
if multiline:
|
||||||
ans = f'{word}\n {desc}'
|
ans = f'{word}\n {desc}'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user