- Add the ability to move to the first and last line of the help
text via Meta-\ (Meta-|) and Meta-/ (Meta-?). Changes to
shortcut_init() and do_help(). (DLR)
+- browser.c:
+ parse_browser_input()
+ - Remove redundant key checks. (DLR)
- files.c:
open_file()
- Remove redundant wording in the error message when we try to
to check for a main shortcut key instead of both it and all of
its equivalents. (DLR)
- Clean up the handling of NANO_REFRESH_KEY. (DLR)
+ - Remove redundant key checks. (DLR)
help_init()
- If we have at least two entries' worth of blank space, use it
to display more of "^Space" and "M-Space". (DLR, suggested by
- Add Space and - as aliases for PageDown and PageUp, for
consistency with the file browser. (DLR, suggested by Benno
Schulenberg)
+ - Remove redundant key checks. (DLR)
- nano.c:
renumber()
- Remove invalid assert. (DLR, found by Filipe Moreira)
- Change all rcfile error messages to refer to commands instead
of directives, for consistency with nanorc.5. (DLR)
- text.c:
+ do_justify()
+ - Remove redundant key checks. (DLR)
do_spell()
- Clarify the error message when creating a temporary file
fails. (DLR)
get_shortcut(browser_list, kbinput, meta_key, func_key);
/* Pico compatibility. */
- if (*meta_key == FALSE && *func_key == FALSE) {
+ if (*meta_key == FALSE) {
switch (*kbinput) {
case ' ':
*kbinput = NANO_NEXTPAGE_KEY;
break;
}
- if ((kbinput != ERR && line == old_line) || (!meta_key &&
- !func_key && kbinput == NANO_REFRESH_KEY))
+ if ((kbinput != ERR && line == old_line) || kbinput ==
+ NANO_REFRESH_KEY)
goto skip_redisplay;
blank_edit();
{
get_shortcut(help_list, kbinput, meta_key, func_key);
- if (*meta_key == FALSE && *func_key == FALSE) {
+ if (*meta_key == FALSE) {
switch (*kbinput) {
/* For consistency with the file browser. */
case ' ':
kbinput = do_input(&meta_key, &func_key, &s_or_t, &ran_func,
&finished, FALSE);
- if (!meta_key && !func_key && s_or_t &&
- kbinput == NANO_UNJUSTIFY_KEY) {
+ if (s_or_t && kbinput == NANO_UNJUSTIFY_KEY) {
/* Splice the justify buffer back into the file, but only if we
* actually justified something. */
if (first_par_line != NULL) {