diff options
Diffstat (limited to 'dselect')
-rw-r--r-- | dselect/basecmds.cc | 2 | ||||
-rw-r--r-- | dselect/baselist.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc index e113fbbe6..bacaac113 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 19a416653..e22737738 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) { |