From 625a4e4608b24ac39d633db97c217c52c886a5a4 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Sun, 17 Oct 1999 05:08:13 +0000 Subject: * Made the large info screen show 5 lines of the pkglist so that it scrolled properly, and still showed the cursor --- dselect/basecmds.cc | 2 +- dselect/baselist.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dselect') 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) { -- cgit v1.2.3