commit c482cf54f0181b3744ce8a664791b1afd3ff5b53
parent 77c16ac1432b07a813cb46442df40cfdbc988b48
Author: PiƱa Colada <engineerarun@gmail.com>
Date: Mon, 5 Jul 2021 22:29:03 +0530
Merge pull request #1094 from jarun/preview-tui
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"