diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-14 09:43:42 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-14 09:43:42 +0000 |
commit | 0e7c726c326ec255e00ce43818c793d974bc2268 (patch) | |
tree | 44328e108bd5ad0b9a0af76f3ea7f96227b9fefa /Src/Zle/zle_tricky.c | |
parent | ae54428aedb8f237f090f302750df5b6c51a8fb9 (diff) | |
download | zsh-0e7c726c326ec255e00ce43818c793d974bc2268.tar.gz zsh-0e7c726c326ec255e00ce43818c793d974bc2268.tar.xz zsh-0e7c726c326ec255e00ce43818c793d974bc2268.zip |
zsh-workers/10127
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 464e6607e..00bc0382a 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -2009,6 +2009,8 @@ listlist(LinkList l) putc('\n', shout); settyinfo(&shttyinfo); } + lastlistlen = (clearflag ? nlines : 0); + if (ncols) { if (isset(LISTROWSFIRST)) { for (col = 1, p = data, lenp = lens; *p; @@ -2253,3 +2255,26 @@ expandorcompleteprefix(char **args) comppref = 0; return ret; } + +/**/ +int +endoflist(char **args) +{ + if (lastlistlen > 0) { + int i; + + clearflag = 0; + trashzle(); + + for (i = lastlistlen; i > 0; i--) + putc('\n', shout); + + showinglist = lastlistlen = 0; + + if (sfcontext) + zrefresh(); + + return 0; + } + return 1; +} |