Просмотр исходного кода

override setheights() to make list_height 1 higher then the default so we draw the list correctly

Wichert Akkerman лет назад: 25
Родитель
Сommit
ae84f4011b
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      dselect/methlist.cc

+ 7 - 0
dselect/methlist.cc

@@ -3,6 +3,7 @@
  * methlist.cc - list of access methods and options
  * methlist.cc - list of access methods and options
  *
  *
  * Copyright (C) 1995 Ian Jackson <iwj10@cus.cam.ac.uk>
  * Copyright (C) 1995 Ian Jackson <iwj10@cus.cam.ac.uk>
+ * Copyright (C) 2001 Wichert Akkerman <wakkerma@debian.org>
  *
  *
  * This is free software; you can redistribute it and/or modify
  * This is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as
  * it under the terms of the GNU General Public License as
@@ -48,6 +49,12 @@ void methodlist::kd_quit() {
   coption= table[cursorline];
   coption= table[cursorline];
 }
 }
 
 
+void methodlist::setheights() {
+  if (debug) fprintf(debug,"methodlist[%p]::setheights()\n",this);
+  baselist::setheights();
+  list_height++;
+}
+
 void methodlist::setwidths() {
 void methodlist::setwidths() {
   if (debug) fprintf(debug,"methodlist[%p]::setwidths()\n",this);
   if (debug) fprintf(debug,"methodlist[%p]::setwidths()\n",this);