stop passing it around.
* src/help.c (help_init), src/winio.c (bottombars): There are
no tagless functions, so there is no need to check.
+ * src/prompt.c (do_prompt, get_prompt_string): Don't pass the
+ menu, just set it earlier.
2014-06-30 Mark Majeres <mark@engine12.com>
* src/cut.c, src/global.c, src/nano.c: Rename 'cut_till_end' to
#ifndef DISABLE_HISTORIES
filestruct **history_list,
#endif
- void (*refresh_func)(void), int menu
+ void (*refresh_func)(void)
#ifndef DISABLE_TABCOMP
, bool *list
#endif
statusbar_pww = statusbar_xplustabs();
}
- currmenu = menu;
-
#ifdef DEBUG
fprintf(stderr, "get_prompt_string: answer = \"%s\", statusbar_x = %lu\n", answer, (unsigned long) statusbar_x);
#endif
prompt = charalloc(((COLS - 4) * mb_cur_max()) + 1);
+ currmenu = menu;
bottombars(menu);
va_start(ap, msg);
#ifndef DISABLE_HISTORIES
history_list,
#endif
- refresh_func, menu
+ refresh_func
#ifndef DISABLE_TABCOMP
, &list
#endif
#ifndef DISABLE_HISTORIES
filestruct **history_list,
#endif
- void (*refresh_func)(void), int menu
+ void (*refresh_func)(void)
#ifndef DISABLE_TABCOMP
, bool *list
#endif