From fe023d8bac1912e96a4d982ba84a0621fde616d2 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 3 Nov 2016 19:45:33 +0000 Subject: users/22080: bracketed-paste: Third time's a charm. vi-set-buffer: Eliminate the sole use of the term "register". --- Doc/Zsh/zle.yo | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Doc/Zsh/zle.yo') diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 63f673ba3..b7bb23bbc 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2176,11 +2176,13 @@ This widget is invoked when text is pasted to the terminal emulator. It is not intended to be bound to actual keys but instead to the special sequence generated by the terminal emulator when text is pasted. -When invoked interactively, the pasted text is inserted to the buffer. +When invoked interactively, the pasted text is inserted to the buffer +and placed in the cutbuffer. If a numeric argument is given, shell quoting will be applied to the pasted text before it is inserted. -The text is also placed in the cutbuffer, or in the specified register -(tt("x) in vi mode). + +When a named buffer is specified with tt(vi-set-buffer) (tt("x)), +the pasted text is stored in that named buffer but not inserted. When called from a widget function as `tt(bracketed-paste) var(name)`, the pasted text is assigned to the variable var(name) and no other processing is @@ -2410,7 +2412,7 @@ concerned replaces the previous contents of the specified buffer. If a named buffer is specified using a capital, the newly cut text is appended to the buffer instead of overwriting it. When using the tt("_) buffer, nothing happens. This can be useful for deleting text without -affecting the normal registers. +affecting any buffers. If no buffer is specified for a cut or change command, tt("1) is used, and the contents of tt("1) to tt("8) are each shifted along one buffer; -- cgit 1.4.1