From 7e53f48774542becbd3ceee780f2498c076fb72f Mon Sep 17 00:00:00 2001 From: Sebastian Neuser Date: Fri, 22 Mar 2024 01:02:39 +0100 Subject: [PATCH] fix(SClangStart): Update tmux split-window command The -p flag is deprecated since tmux 3.1 (Feb 4, 2020) and is broken in tmux 3.4 although the main branch already has a fix for it. Nevertheless we should move to the new syntax as -p *will* be dropped at some point. --- ftplugin/supercollider.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/supercollider.vim b/ftplugin/supercollider.vim index ab5bf10..22afe82 100644 --- a/ftplugin/supercollider.vim +++ b/ftplugin/supercollider.vim @@ -259,7 +259,7 @@ function SClangStart(...) wincmd w elseif l:tmux || l:screen if l:tmux - let l:cmd = "tmux split-window -" . l:splitDir . " -p " . l:splitSize . " ;" + let l:cmd = "tmux split-window -" . l:splitDir . " -l " . l:splitSize . "% ; " let l:cmd .= "tmux send-keys " . s:sclangPipeApp . " Enter ; tmux select-pane -l" call system(l:cmd) elseif l:screen