mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
19474: fix a calculation when displaying completions which are
screen width or multiples of that wide, and ALWAYS_LAST_PROMPT
This commit is contained in:
parent
8cba4981ad
commit
8026bedc1c
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2004-03-05 Geoff Wing <gcw@zsh.org>
|
||||
|
||||
* 19474: Src/Zle/compresult.c: fix a calculation when displaying
|
||||
completions which are screen width or multiples of that wide, and
|
||||
option always_last_prompt is used.
|
||||
|
||||
2004-03-04 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 19535: configure.ac, INSTALL: Add --enable-cap flag
|
||||
|
|
|
|||
|
|
@ -1573,10 +1573,10 @@ calclist(int showall)
|
|||
if (!(m->flags & CMF_HIDE)) {
|
||||
if (m->disp) {
|
||||
if (!(m->flags & CMF_DISPLINE))
|
||||
glines += 1 + (mlens[m->gnum] / columns);
|
||||
glines += 1 + ((mlens[m->gnum] - 1) / columns);
|
||||
} else if (showall ||
|
||||
!(m->flags & (CMF_NOLIST | CMF_MULT)))
|
||||
glines += 1 + ((mlens[m->gnum]) / columns);
|
||||
glines += 1 + (((mlens[m->gnum]) - 1) / columns);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue