summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-14 04:25:43 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-16 03:46:18 +0000
commit00210c09db091e057e61b742a4f31204adee7894 (patch)
tree47d49d292c815f3c84df29fb7e3734adcbe708cc
parentb870ff85a0bcda9d38a734aa86bb6aee3d76983e (diff)
downloadzsh-00210c09db091e057e61b742a4f31204adee7894.tar.gz
zsh-00210c09db091e057e61b742a4f31204adee7894.zip
39311: _tmux-capture-pane: Tweak specifications of -S/-E and description strings.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_tmux12
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 0faf7b9ca..2fab882e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-16 Daniel Shahaf <d.s@daniel.shahaf.name>
+
+ * 39311: Completion/Unix/Command/_tmux: _tmux-capture-pane:
+ Tweak specifications of -S/-E and description strings.
+
2016-09-15 Oliver Kiddle <opk@zsh.org>
* 39333: Completion/Base/Utility/_call_program,
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 79ba61d3b..1adb7da31 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -198,15 +198,15 @@ _tmux-capture-pane() {
[[ -n ${tmux_describe} ]] && print "capture the contents of a pane to a buffer" && return
_arguments -s \
'-a[use alternate screen]' \
- '-b+[choose target buffer]:target buffer:__tmux-buffers' \
+ '(-p)-b+[choose target buffer]:target buffer:__tmux-buffers' \
'-C[escape non-printable characters as octal \\ooo]' \
'-e[include escape sequences for attributes etc]' \
- '-E[specify last line to capture. - means last line of pane]' \
- '-J[join wrapped lines and preserver trailing space]' \
+ '-E[specify last line to capture]:line number (- means last line)' \
+ '-J[join wrapped lines and preserve trailing space]' \
'-q[ignore errors when trying to access alternate screen]' \
- '-p[print data to stdout]' \
- '-P[only capture that is the beginning of an as-yet incomplete esc seq]' \
- '-S[specify start line to capture. - means first line of scrollback]' \
+ '(-b)-p[print data to stdout]' \
+ '-P[only capture beginnings of as-yet incomplete escape sequences]' \
+ '-S[specify start line to capture]:first line (- means start of scrollback)' \
'-t+[choose source pane]:source pane:__tmux-panes'
}