* browsing from. */
char *do_browser(char *path, DIR *dir)
{
+ char *retval = NULL;
int kbinput;
bool meta_key, func_key, old_const_update = ISSET(CONST_UPDATE);
char *prev_dir = NULL;
* entering "..". */
char *ans = mallocstrcpy(NULL, "");
/* The last answer the user typed on the statusbar. */
- char *retval = NULL;
curs_set(0);
blank_statusbar();
/* We go here after the user selects a new directory. */
kbinput = ERR;
- meta_key = FALSE;
- func_key = FALSE;
width = 0;
selected = 0;
/* Display the file list if we don't have a key, or if we do
* have a key and the selected file has changed. */
- if (kbinput == ERR || old_selected == selected)
+ if (kbinput == ERR || old_selected != selected)
browser_refresh();
kbinput = get_kbinput(edit, &meta_key, &func_key);
* the function we will call to refresh the edit window.*/
void do_help(void (*refresh_func)(void))
{
+ int kbinput = ERR;
+ bool meta_key, func_key, old_no_help = ISSET(NO_HELP);
size_t line = 0;
/* The line number in help_text of the first displayed help
* line. This variable is zero-based. */
size_t last_line = 0;
/* The line number in help_text of the last help line. This
* variable is zero-based. */
- int kbinput = ERR;
- bool meta_key, func_key, old_no_help = ISSET(NO_HELP);
#ifndef DISABLE_MOUSE
const shortcut *oldshortcut = currshortcut;
/* We will set currshortcut to allow clicking on the help