From 778a73b027509c9c9f70c8dbd184097efeacae43 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 27 Jan 2003 14:54:31 +0000 Subject: 18139: Improve $killring interface; can now change length. Empty strings in $killring are ignored when yank-popping. Yank-popping is more consistent about looping and using the original cutbuffer. --- Doc/Zsh/zle.yo | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 771ff4d18..75d3faadf 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -622,10 +622,14 @@ vindex(killring) item(tt(killring) (array))( The array of previously killed items, with the most recently killed first. This gives the items that would be retrieved by a tt(yank-pop) in the -same order, up to eight (which is the maximum stored internally). -Unlike a normal array, only a maximum of eight elements may be written; -any extra are ignored. If fewer than eight elements are given, the -remaining elements of the kill ring will be treated as undefined. +same order. + +The default size for the kill ring is eight, however the length may be +changed by normal array operations. Any empty string in the kill ring is +ignored by the tt(yank-pop) command, hence the size of the array +effectively sets the maximum length of the kill ring, while the number of +non-zero strings gives the current length, both as seen by the user at the +command line. ) vindex(LASTSEARCH) -- cgit 1.4.1