do_help()
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
consistency. (DLR)
+ do_yesno()
+ - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
total_update()
- Simplify to call clearok(TRUE) and wrefresh() on edit, which
updates the entire screen in fewer function calls. (DLR)
kbinput = get_kbinput(edit, &meta_key, &func_key);
- if (kbinput == NANO_CANCEL_KEY)
+ if (kbinput == NANO_REFRESH_KEY) {
+ total_update();
+ continue;
+ } else if (kbinput == NANO_CANCEL_KEY)
ok = -1;
#ifndef DISABLE_MOUSE
else if (kbinput == KEY_MOUSE) {