* browsing to "..". */
char *ans = mallocstrcpy(NULL, "");
/* The last answer the user typed on the statusbar. */
+ size_t old_selected;
+ /* The selected file we had before the current selected file. */
curs_set(0);
blank_statusbar();
} else
selected = 0;
+ old_selected = (size_t)-1;
+
titlebar(path);
while (!abort) {
int i;
size_t fileline = selected / width;
/* The line number the selected file is on. */
- size_t old_selected = (size_t)-1;
- /* The selected file we had before the current selected
- * file. */
char *new_path;
/* The path we switch to at the "Go to Directory"
* prompt. */
if (kbinput == ERR || old_selected != selected)
browser_refresh();
+ old_selected = selected;
+
kbinput = get_kbinput(edit, &meta_key, &func_key);
parse_browser_input(&kbinput, &meta_key, &func_key);
abort = TRUE;
break;
}
-
- old_selected = selected;
}
titlebar(NULL);
/* The current shortcut list. */
#endif
const char *ptr;
+ /* The current line of help text. */
+ size_t old_line = (size_t)-1;
+ /* The line we were on before the current line. */
curs_set(0);
blank_edit();
while (!abort) {
size_t i;
- /* Generic loop variable. */
- size_t old_line = (size_t)-1;
- /* The line we were on before the current line. */
/* Display the help text if we don't have a key, or if the help
* text has moved. */
wnoutrefresh(edit);
+ old_line = line;
+
kbinput = get_kbinput(edit, &meta_key, &func_key);
parse_help_input(&kbinput, &meta_key, &func_key);
abort = TRUE;
break;
}
-
- old_line = line;
}
#ifndef DISABLE_MOUSE