summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dselect/baselist.cc3
-rw-r--r--dselect/methlist.cc4
-rw-r--r--dselect/pkgdisplay.cc3
3 files changed, 3 insertions, 7 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc
index 0756a7c12..35c45f300 100644
--- a/dselect/baselist.cc
+++ b/dselect/baselist.cc
@@ -243,6 +243,9 @@ baselist::baselist(keybindings *kb) {
nitems= 0;
gap_width = 1;
+ total_width = TOTAL_LIST_WIDTH;
+ if (total_width < COLS)
+ total_width = COLS;
xmax= -1;
list_height=0; info_height=0;
diff --git a/dselect/methlist.cc b/dselect/methlist.cc
index a4147d347..e6c105425 100644
--- a/dselect/methlist.cc
+++ b/dselect/methlist.cc
@@ -63,10 +63,6 @@ void methodlist::setwidths() {
name_width= 14;
name_column= status_width + gap_width;
description_column= name_column + name_width + gap_width;
-
- total_width= TOTAL_LIST_WIDTH;
- if (total_width < COLS)
- total_width= COLS;
description_width= total_width - description_column;
}
diff --git a/dselect/pkgdisplay.cc b/dselect/pkgdisplay.cc
index 4d8a25706..bf1f6aacb 100644
--- a/dselect/pkgdisplay.cc
+++ b/dselect/pkgdisplay.cc
@@ -181,9 +181,6 @@ void packagelist::setwidths() {
internerr("unknown versiondisplayopt %d in setwidths", versiondisplayopt);
}
- total_width= TOTAL_LIST_WIDTH;
- if (total_width < COLS)
- total_width= COLS;
description_width= total_width - description_column;
}