Skip to content

Commit

Permalink
Merge pull request #244 from davidarny/fix-tmux-allow-passthrough
Browse files Browse the repository at this point in the history
fix: tmux allow-passthrough handling in image.nvim
  • Loading branch information
3rd authored Nov 20, 2024
2 parents 7f61c19 + b473ea2 commit 121a44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/image/utils/tmux.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local is_tmux = vim.env.TMUX ~= nil
local has_passthrough = false
if is_tmux then
local ok, result = pcall(vim.fn.system, "tmux show -Apv allow-passthrough")
if ok and result:sub(-3) == "on\n" then has_passthrough = true end
if ok and (result:sub(-3) == "on\n" or result:sub(-4) == "all\n") then has_passthrough = true end
end

local create_dm_getter = function(name)
Expand Down

0 comments on commit 121a44f

Please sign in to comment.