* src/*.c: Normalize whitespace around '==' comparison.
* configure.ac: Check for the availability of snprintf(),
fixes Savannah bug #42070 reported by David Lawrence Ramsey.
+ * src/global.c (shortcut_init), src/help.c (do_help): Add the
+ shortcuts M-\ and M-/ for First Line and Last Line to the help
+ viewer, instead of ^Y and ^V, which are already taken for Page
+ Up and Page Down. Also, stop them from aborting the viewer.
2014-04-14 Benno Schulenberg <bensberg@justemail.net>
* src/{proto.h,cut.c,nano.c,text.c}: Remove the unused parameter
#endif
add_to_funcs(do_first_line,
- (MMAIN|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE),
+ (MMAIN|MHELP|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE),
first_line_msg, IFSCHELP(nano_firstline_msg), FALSE, VIEW);
add_to_funcs(do_last_line,
- (MMAIN|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE),
+ (MMAIN|MHELP|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE),
last_line_msg, IFSCHELP(nano_lastline_msg), TRUE, VIEW);
add_to_funcs(do_gotolinecolumn_void, (MMAIN|MWHEREIS),
add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2,
"M-R", regexp_void, 0, FALSE);
- add_to_sclist(MMAIN, "M-\\", do_first_line, 0, TRUE);
- add_to_sclist(MMAIN, "M-|", do_first_line, 0, TRUE);
- add_to_sclist(MMAIN, "M-/", do_last_line, 0, TRUE);
- add_to_sclist(MMAIN, "M-?", do_last_line, 0, TRUE);
- add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE|MHELP,
+ add_to_sclist(MMAIN|MHELP, "M-\\", do_first_line, 0, TRUE);
+ add_to_sclist(MMAIN|MHELP, "M-|", do_first_line, 0, TRUE);
+ add_to_sclist(MMAIN|MHELP, "M-/", do_last_line, 0, TRUE);
+ add_to_sclist(MMAIN|MHELP, "M-?", do_last_line, 0, TRUE);
+ add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE,
"^Y", do_first_line, 0, TRUE);
- add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE|MHELP,
+ add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE,
"^V", do_last_line, 0, TRUE);
#ifndef DISABLE_BROWSER