]> Sergey Matveev's repositories - nnn.git/commitdiff
Allow tmux inside kitty without KITTY_LISTEN_ON set
authorLuuk van Baal <luukvbaal@gmail.com>
Mon, 5 Jul 2021 13:40:18 +0000 (15:40 +0200)
committerLuuk van Baal <luukvbaal@gmail.com>
Mon, 5 Jul 2021 13:40:18 +0000 (15:40 +0200)
plugins/preview-tui

index b133d3aa13a877639c75ec4108fef6a99b283dea..2849efd46a085d9e1078749776b62e0ba6cc44d6 100755 (executable)
@@ -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"