1
1

bottombar: only count help items that have a shortcut bound to them

This avoids showing a ghost item in, for example, the WriteOut menu
when not using --tempfile and the user does not bind 'discardbuffer'.
Этот коммит содержится в:
Benno Schulenberg 2016-08-27 12:22:59 +02:00
родитель c05c914eee
Коммит aeb49a8013

Просмотреть файл

@ -230,9 +230,9 @@ size_t length_of_list(int menu)
size_t i = 0;
for (f = allfuncs; f != NULL; f = f->next)
if ((f->menus & menu) != 0) {
if ((f->menus & menu) && first_sc_for(menu, f->scfunc) != NULL)
i++;
}
return i;
}