Skip to content

Commit

Permalink
fix: tmux passthrough check broken by NixOS/nixpkgs#261777
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Oct 21, 2023
1 parent c40215d commit 431235a
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 == "on\n" then has_passthrough = true end
if ok and result:sub(-3) == "on\n" then has_passthrough = true end
end

local create_dm_getter = function(name)
Expand Down

0 comments on commit 431235a

Please sign in to comment.