2014-06-23 Benno Schulenberg <bensberg@justemail.net>
* src/nano.h, src/move.c (do_up, do_down), src/winio.c (edit_scrol):
Rename UP_DIR and DOWN_DIR to UPWARD and DOWNWARD, for clarity.
+ * src/proto.h, src/global.c, src/search.c: Rename 'no_replace_void()'
+ to 'flip_replace_void()', to show what it actually does.
+ * doc/man/nanorc.5, doc/texinfo/nano.texi: Update the docs for that.
2014-06-22 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c (parse_browser_input), src/help.c (parse_help_input):
void new_buffer_void(void)
{
}
-void no_replace_void(void)
+void flip_replace_void(void)
{
}
void flip_execute_void(void)
N_("Backwards"), IFSCHELP(nano_reverse_msg), FALSE, VIEW);
#endif
- add_to_funcs(do_replace, MWHEREIS,
+ add_to_funcs(flip_replace_void, MWHEREIS,
replace_tag, IFSCHELP(nano_replace_msg), FALSE, VIEW);
- add_to_funcs(no_replace_void, MREPLACE,
+ add_to_funcs(flip_replace_void, MREPLACE,
N_("No Replace"), IFSCHELP(nano_whereis_msg), FALSE, VIEW);
#ifndef DISABLE_JUSTIFY
add_to_sclist(MWHEREIS|MREPLACE, "M-C", case_sens_void, 0, FALSE);
#endif
add_to_sclist(MWHEREIS|MREPLACE, "M-R", regexp_void, 0, FALSE);
- add_to_sclist(MWHEREIS, "^R", do_replace, 0, FALSE);
- add_to_sclist(MREPLACE, "^R", no_replace_void, 0, FALSE);
+ add_to_sclist(MWHEREIS|MREPLACE, "^R", flip_replace_void, 0, FALSE);
add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MGOTOLINE, "^Y", do_first_line, 0, TRUE);
add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MGOTOLINE, "^V", do_last_line, 0, TRUE);
#ifndef DISABLE_JUSTIFY
s->scfunc = backwards_void;
s->execute = FALSE;
#endif
- } else if (!strcasecmp(input, "dontreplace")) {
- s->scfunc = no_replace_void;
+ } else if (!strcasecmp(input, "flipreplace") ||
+ !strcasecmp(input, "dontreplace")) {
+ s->scfunc = flip_replace_void;
s->execute = FALSE;
} else if (!strcasecmp(input, "gototext")) {
s->scfunc = gototext_void;