mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
fix(tmux): fix tmux module to comply with latest changes to tmux API
This commit is contained in:
parent
e396483b7c
commit
627be003bf
@ -54,9 +54,9 @@ local function terminal_exists(window_id)
|
|||||||
-- This has to be done this way because tmux has-session does not give
|
-- This has to be done this way because tmux has-session does not give
|
||||||
-- updated results
|
-- updated results
|
||||||
for _, line in pairs(window_list) do
|
for _, line in pairs(window_list) do
|
||||||
local window_info = utils.split_string(line, "@")[1]
|
local window_info = utils.split_string(line, "@")[2]
|
||||||
|
|
||||||
if string.find(window_info, window_id) then
|
if string.find(window_info, string.sub(window_id, 2)) then
|
||||||
exists = true
|
exists = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -118,7 +118,7 @@ function M.gotoTerminal(idx)
|
|||||||
|
|
||||||
local _, ret, stderr = utils.get_os_command_output({
|
local _, ret, stderr = utils.get_os_command_output({
|
||||||
"tmux",
|
"tmux",
|
||||||
"select-pane",
|
"select-window",
|
||||||
"-t",
|
"-t",
|
||||||
window_handle.window_id,
|
window_handle.window_id,
|
||||||
}, vim.loop.cwd())
|
}, vim.loop.cwd())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user