Skip to content

Commit 2625de7

Browse files
author
Bruno Sutic
committed
Add a option to capture-pane command
1 parent b8d58b7 commit 2625de7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
### master
4+
- `capture-pane` gets a `-J` flag. It joins wrapped lines and preserves trailing
5+
spaces at each line's end.
46

57
### v2.0.0, 2015-03-14
68
- update readme

scripts/capture_pane_helpers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ capture_pane() {
1919
local capture_scope=$1
2020
if [ $capture_scope == "History" ]; then
2121
# copying 9M lines back will hopefully fetch the whole scrollback
22-
tmux capture-pane -S -9000000 -p > "$file"
22+
tmux capture-pane -J -S -9000000 -p > "$file"
2323
elif [[ $capture_scope == "Screen capture" ]]; then
24-
tmux capture-pane -p > "$file"
24+
tmux capture-pane -J -p > "$file"
2525
else
2626
# error
2727
exit 1

0 commit comments

Comments
 (0)