ソースを参照

dselect: Use max() to compute total_width

Guillem Jover 14 年 前
親
コミット
7abdff8709
共有1 個のファイルを変更した、1 個の追加 と 3 個の削除を含む
  1. 1 3
      dselect/baselist.cc

+ 1 - 3
dselect/baselist.cc

@@ -243,9 +243,7 @@ baselist::baselist(keybindings *kb) {
   nitems= 0;
 
   gap_width = 1;
-  total_width = TOTAL_LIST_WIDTH;
-  if (total_width < COLS)
-    total_width = COLS;
+  total_width = max(TOTAL_LIST_WIDTH, COLS);
 
   xmax= -1;
   list_height=0; info_height=0;