Explorar o código

* Made the large info screen show 5 lines of the pkglist so that
it scrolled properly, and still showed the cursor

Ben Collins %!s(int64=27) %!d(string=hai) anos
pai
achega
625a4e4608
Modificáronse 4 ficheiros con 9 adicións e 5 borrados
  1. 2 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 1 1
      dselect/basecmds.cc
  4. 4 4
      dselect/baselist.cc

+ 2 - 0
ChangeLog

@@ -7,6 +7,8 @@ Sat Oct 16 11:43:45 EDT 1999 Ben Collins <bcollins.debian.org>
     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 <wakkerma@debian.org>
 

+ 2 - 0
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 <wakkerma@debian.org>  Sat, 16 Oct 1999 12:20:10 -0400
 

+ 1 - 1
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();
   }

+ 4 - 4
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) {