diff options
author | Ben Collins <bcollins@debian.org> | 1999-10-17 05:08:13 +0000 |
---|---|---|
committer | Ben Collins <bcollins@debian.org> | 1999-10-17 05:08:13 +0000 |
commit | 625a4e4608b24ac39d633db97c217c52c886a5a4 (patch) | |
tree | 4703f60b5a3868eb85ea2773d7fc2c645f107dd4 /dselect | |
parent | af5dac3319d083084875fb5a043f68545837dfbb (diff) | |
download | dpkg-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')
-rw-r--r-- | dselect/basecmds.cc | 2 | ||||
-rw-r--r-- | dselect/baselist.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc index e113fbbe6..bacaac113 100644 --- a/dselect/basecmds.cc +++ b/dselect/basecmds.cc @@ -185,7 +185,7 @@ void baselist::setcursor(int index) { cursorline= index; if (listpad) { redrawitemsrange(cursorline,cursorline+1); - redraw1itemsel(cursorline, showinfo != 2); + redraw1itemsel(cursorline,1); refreshlist(); redrawthisstate(); } 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) { |