Fix SIGABRT on exit on RelWithDebInfo nvim builds
This commit is contained in:
parent
e09dc1346c
commit
86d2a85552
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user