Skip to content

Commit

Permalink
fix tmuxline
Browse files Browse the repository at this point in the history
  • Loading branch information
zztrieuzz committed Jun 13, 2024
1 parent 58b6ddb commit 20f5b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/wltmuxline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ end
local function run_cmd(line)
local original = vim.fn.systemlist(
string.format([[sh -c 'tmux display-message -p "#{%s}"']], line.tmux))[1]
if not original:match('socket_path') then
if original and not original:match('socket_path') then
line.original = original
end
local tmux_set_command = string.format([[tmux set -g %s '#(cat #{socket_path}-\#{session_id}-%s)']],
Expand Down

0 comments on commit 20f5b25

Please sign in to comment.