From: Ben Collins Date: Sun, 17 Oct 1999 05:08:13 +0000 (+0000) Subject: * Made the large info screen show 5 lines of the pkglist so that X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=625a4e4608b24ac39d633db97c217c52c886a5a4;p=dpkg * Made the large info screen show 5 lines of the pkglist so that it scrolled properly, and still showed the cursor --- diff --git a/ChangeLog b/ChangeLog index e31c72b6..9fdf95ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ Sat Oct 16 11:43:45 EDT 1999 Ben Collins of the registered alternatives for a specific name * Updated the deb-control(5) man page with all the current fields and uses + * Made the large info screen show 5 lines of the pkglist so that + it scrolled properly, and still showed the cursor Thu Oct 14 04:51:14 CEST 1999 Wichert Akkerman diff --git a/debian/changelog b/debian/changelog index 183baaf3..e4c45ff5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ dpkg (1.4.1.16) unstable; urgency=low of the registered alternatives for a specific name * Updated the deb-control(5) man page with all the current fields and uses + * Made the large info screen show 5 lines of the pkglist so that + it scrolled properly, and still showed the cursor -- Wichert Akkerman Sat, 16 Oct 1999 12:20:10 -0400 diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc index e113fbbe..bacaac11 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 19a41665..e2273773 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) {