From cf5ed54c848a9072b603790f2d01975973f3ecc3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 Jul 2021 21:46:17 +0530 Subject: [PATCH] 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 --- kitty/complete.py | 1 - 1 file changed, 1 deletion(-) diff --git a/kitty/complete.py b/kitty/complete.py index 762e81a3e..48fdec998 100644 --- a/kitty/complete.py +++ b/kitty/complete.py @@ -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: