scripts: resize: always resize the proper pane - sob - simple output bar | |
git clone git://git.codemadness.org/sob | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 739f0257360815ab73257e8b1f682567a140f781 | |
parent 97f351910969f50f9b33a9af848453b73842cb2f | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 12 Oct 2014 22:39:16 +0000 | |
scripts: resize: always resize the proper pane | |
Diffstat: | |
M scripts/resize | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/scripts/resize b/scripts/resize | |
@@ -1,2 +1,3 @@ | |
#!/bin/sh | |
-tmux resize-pane -y 4 2> /dev/null | |
+test x"$TMUX_PANE" = x"" && exit 1 | |
+tmux resize-pane -t "$TMUX_PANE" -y 4 2> /dev/null |