summaryrefslogtreecommitdiff
path: root/dselect/baselist.cc
diff options
context:
space:
mode:
authorBen Collins <bcollins@debian.org>1999-10-17 05:08:13 +0000
committerBen Collins <bcollins@debian.org>1999-10-17 05:08:13 +0000
commit625a4e4608b24ac39d633db97c217c52c886a5a4 (patch)
tree4703f60b5a3868eb85ea2773d7fc2c645f107dd4 /dselect/baselist.cc
parentaf5dac3319d083084875fb5a043f68545837dfbb (diff)
downloaddpkg-625a4e4608b24ac39d633db97c217c52c886a5a4.tar.gz
* Made the large info screen show 5 lines of the pkglist so that
it scrolled properly, and still showed the cursor
Diffstat (limited to 'dselect/baselist.cc')
-rw-r--r--dselect/baselist.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc
index 19a416653..e22737738 100644
--- a/dselect/baselist.cc
+++ b/dselect/baselist.cc
@@ -84,10 +84,10 @@ void baselist::setupsigwinch() {
void baselist::setheights() {
int y= ymax - (title_height + colheads_height + thisstate_height);
assert(y>=1);
- if (showinfo==2 && y>=3) {
- list_height= 1;
+ if (showinfo==2 && y>=7) {
+ list_height= 5;
whatinfo_height= 1;
- info_height= y-2;
+ info_height= y-6;
} else if (showinfo==1 && y>=10) {
list_height= y/2;
info_height= (y-1)/2;
@@ -215,7 +215,7 @@ void baselist::redrawall() {
}
void baselist::redraw1item(int index) {
- redraw1itemsel(index, showinfo == 2 ? 0 : index == cursorline);
+ redraw1itemsel(index, index == cursorline);
}
baselist::baselist(keybindings *kb) {