summaryrefslogtreecommitdiff
path: root/dselect/pkgdisplay.cc
diff options
context:
space:
mode:
authorScott James Remnant <keybuk@debian.org>2004-03-08 17:38:01 +0000
committerScott James Remnant <keybuk@debian.org>2004-03-08 17:38:01 +0000
commit0b40f4d5c4a05ebdba306f12c9ea2a893f5b6dbf (patch)
tree8cec5b8bf75f8d3fba9b86e33459ec9dfd80dce8 /dselect/pkgdisplay.cc
parent91241c4208af0e46b36777ab1ddf9dbbcb67fae1 (diff)
downloaddpkg-0b40f4d5c4a05ebdba306f12c9ea2a893f5b6dbf.tar.gz
Apply patch from Colin Watson to fix #139781; dselect had a
hard-coded maximum window width of 179 chars for some things, when COLS is easily available.
Diffstat (limited to 'dselect/pkgdisplay.cc')
-rw-r--r--dselect/pkgdisplay.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/dselect/pkgdisplay.cc b/dselect/pkgdisplay.cc
index 2fc178092..a1f99b690 100644
--- a/dselect/pkgdisplay.cc
+++ b/dselect/pkgdisplay.cc
@@ -186,6 +186,8 @@ void packagelist::setwidths() {
}
total_width= TOTAL_LIST_WIDTH;
+ if (total_width < COLS)
+ total_width= COLS;
description_width= total_width - description_column;
}