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:
parent
b813e1f7ab
commit
cf5ed54c84
@ -222,7 +222,6 @@ def zsh_output_serializer(ans: Completions) -> str:
|
||||
desc = desc[:truncate_point_for_length(desc, max_desc_len - 2)]
|
||||
desc += '…'
|
||||
|
||||
word = f'\x1b[32m{word}\x1b[39m'
|
||||
if multiline:
|
||||
ans = f'{word}\n {desc}'
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user