get_next_filename()
- Use a long instead of an int for the number prepended to the
filename. (DLR)
+ do_browser()
+ - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
+ consistency. (DLR)
- nano.c:
help_init()
- Remove extra space from main help text (Jordi).
num_of_digits()
- Use a ssize_t instead of an int. (DLR)
- winio.c:
+ do_help()
+ - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
+ consistency. (DLR)
total_update()
- Simplify to call clearok(TRUE) and wrefresh() on curscr, which
updates the entire screen in fewer function calls. (DLR)
}
break;
#endif
- case NANO_NEXTPAGE_KEY:
- case NANO_NEXTPAGE_FKEY:
- if (!no_more)
- line += editwinrows - 2;
- break;
case NANO_PREVPAGE_KEY:
case NANO_PREVPAGE_FKEY:
if (line > 0) {
line = 0;
}
break;
+ case NANO_NEXTPAGE_KEY:
+ case NANO_NEXTPAGE_FKEY:
+ if (!no_more)
+ line += editwinrows - 2;
+ break;
case NANO_PREVLINE_KEY:
if (line > 0)
line--;
skip_redisplay:
kbinput = get_kbinput(edit, &meta_key, &func_key);
- } while (kbinput != NANO_CANCEL_KEY && kbinput != NANO_EXIT_KEY &&
- kbinput != NANO_EXIT_FKEY);
+ } while (kbinput != NANO_EXIT_KEY && kbinput != NANO_EXIT_FKEY);
#ifndef DISABLE_MOUSE
currshortcut = oldshortcut;