commit 4abced6142b8fecb944d03dfde484ac0e3e8a75c
parent 77c16ac1432b07a813cb46442df40cfdbc988b48
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Mon, 5 Jul 2021 15:40:18 +0200
Allow tmux inside kitty without KITTY_LISTEN_ON set
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/preview-tui b/plugins/preview-tui
@@ -412,7 +412,7 @@ else
clear
printf "No FIFO available! (\$NNN_FIFO='%s')\nPlease read Usage in preview-tui." "$NNN_FIFO"
cfg=$(stty -g); stty raw -echo; head -c 1; stty "$cfg"
- elif [ "$KITTY_WINDOW_ID" ] && [ -z "$KITTY_LISTEN_ON" ]; then
+ elif [ "$KITTY_WINDOW_ID" ] && [ -z "$TMUX" ] && [ -z "$KITTY_LISTEN_ON" ]; then
clear
printf "\$KITTY_LISTEN_ON not set!\nPlease read Usage in preview-tui."
cfg=$(stty -g); stty raw -echo; head -c 1; stty "$cfg"