2nd which unneccesary
This commit is contained in:
parent
99e1605bba
commit
33de55540b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue