From a6b74f190f59bc9fd6c2deb8e092e04d3ca76e2d Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Wed, 5 Jan 2022 09:20:33 +0100 Subject: [PATCH] Revert "Get _ksi_debug_print working again" This reverts commit ff63e58f95833e10146568df914438ff4d4f8e12. --- shell-integration/zsh/kitty-integration | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index 70d7d0641..8e47cfb53 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -32,13 +32,10 @@ builtin emulate -L zsh -o no_warn_create_global # 2: none of the above. builtin typeset -gi _ksi_state -# Asks kitty to print $@ to its STDOUT. This is for debugging. +# Asks kitty to print $@ to its stdout. This is for debugging. _ksi_debug_print() { - builtin local data saved - saved="$IFS" - IFS=" " - data=$(command base64 <<< "$*") - IFS="$saved" + builtin local data + data=$(command base64 <<<"${(j: :}@}") || builtin return builtin printf '\eP@kitty-print|%s\e\\' "${data//$'\n'}" }