diff options
author | Scott James Remnant <keybuk@debian.org> | 2004-03-08 17:38:01 +0000 |
---|---|---|
committer | Scott James Remnant <keybuk@debian.org> | 2004-03-08 17:38:01 +0000 |
commit | 0b40f4d5c4a05ebdba306f12c9ea2a893f5b6dbf (patch) | |
tree | 8cec5b8bf75f8d3fba9b86e33459ec9dfd80dce8 /dselect | |
parent | 91241c4208af0e46b36777ab1ddf9dbbcb67fae1 (diff) | |
download | dpkg-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')
-rw-r--r-- | dselect/methlist.cc | 2 | ||||
-rw-r--r-- | dselect/pkgdisplay.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/dselect/methlist.cc b/dselect/methlist.cc index 7761c49af..054e590d0 100644 --- a/dselect/methlist.cc +++ b/dselect/methlist.cc @@ -67,6 +67,8 @@ void methodlist::setwidths() { 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 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; } |