/* Redraw the screen. */
case NANO_REFRESH_KEY:
total_redraw();
+ kbinput = ERR;
break;
case NANO_HELP_KEY:
#ifndef DISABLE_HELP
goto change_browser_directory;
}
- /* Display the file list if we don't have a key, we do have a
- * key and the selected file has changed, or if we haven't
- * updated the screen already. */
- if ((kbinput == ERR || old_selected == selected) && kbinput !=
- NANO_REFRESH_KEY)
+ /* 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)
browser_refresh();
kbinput = get_kbinput(edit, &meta_key, &func_key);
#endif
case NANO_REFRESH_KEY:
total_redraw();
+ kbinput = ERR;
break;
case NANO_PREVPAGE_KEY:
if (line > editwinrows - 2)
break;
}
- /* Display the help text if we don't have a key, we do have a
- * key and the help text has moved, or if we haven't updated the
- * screen already. */
- if ((kbinput == ERR || line != old_line) && kbinput !=
- NANO_REFRESH_KEY) {
+ /* Display the help text if we don't have a key, or if we do
+ * have a key and the help text has moved. */
+ if (kbinput == ERR || line != old_line) {
blank_edit();
/* Calculate where in the text we should be, based on the