in do_yesno(), allow refreshing the screen via Ctrl-L, as Pico does

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2601 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-06-06 17:00:08 +00:00
parent f4595bb5ae
commit da33153379
2 changed files with 6 additions and 1 deletions

View File

@ -167,6 +167,8 @@ CVS code -
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)

View File

@ -3647,7 +3647,10 @@ int do_yesno(bool all, const char *msg)
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) {