From 86d2a8555299ecc22ec361a6fb1eaa3df68cba9d Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 3 Mar 2024 13:16:53 +0000 Subject: [PATCH] Fix SIGABRT on exit on RelWithDebInfo nvim builds --- lua/plugins/tmux.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/plugins/tmux.lua b/lua/plugins/tmux.lua index ad795d0..265d9b8 100644 --- a/lua/plugins/tmux.lua +++ b/lua/plugins/tmux.lua @@ -1,5 +1,5 @@ return { - "alexghergh/nvim-tmux-navigation", + 'alexghergh/nvim-tmux-navigation', config = function() local plugin = require('nvim-tmux-navigation') plugin.setup({ @@ -13,7 +13,11 @@ return { vim.fn.system('tmux set-window-option ' .. navigation_flag .. ' 1') end local function unset_navigation_flag() - vim.fn.system('tmux set-window-option -u ' .. navigation_flag) + -- FIXME: Due to a regression this causes SIGABRT when RelWithDebInfo + -- vim.fn.system('tmux set-window-option -u ' .. navigation_flag) + -- https://github.com/neovim/neovim/issues/21856 contains a workaround + vim.fn.jobstart( + 'tmux set-window-option -u ' .. navigation_flag, { detach = true}) end -- [Un]set tmux window option to detect when to change pane.