mirror of
https://github.com/wellle/tmux-complete.vim.git
synced 2026-05-26 11:24:33 +02:00
Merge pull request #44 from wellle/43-fix-redirection
43 Fix redirection in shell script
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ fi
|
||||
MODE="$1" PATTERN="$2" LISTARGS="$3" CAPTUREARGS="$4"
|
||||
|
||||
capturepane() {
|
||||
if [ tmux capture-pane -p &> /dev/null ]; then
|
||||
if tmux capture-pane -p >/dev/null 2>&1; then
|
||||
# tmux capture-pane understands -p -> use it
|
||||
xargs -n1 tmux capture-pane $1 -p -t
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user