From 33de55540b41f5dded79dd37f9ac7134f60d7196 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Mar 2022 22:25:03 +0530 Subject: [PATCH] 2nd which unneccesary --- kitty/boss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index 8fa820c0d..4460f4c89 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -1329,7 +1329,7 @@ def prepare_arg(x: str) -> str: tab = self.active_tab if tab is not None: bdata = data.encode('utf-8') if isinstance(data, str) else data - if is_macos and which(cmd[0]) == '/usr/bin/less': + if is_macos and cmd[0] == '/usr/bin/less': # the system less on macOS barfs up OSC codes, so sanitize them ourselves bdata = re.sub(br'\x1b\].*?\x1b\\', b'', bdata)