Commit aeb49a80 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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'.
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment