shortcut isn't clicked. New functions get_shortcut(),
get_toggle(), get_edit_input(), and get_edit_mouse(); changes
to do_browser(), do_justify(), do_help(), and main(). (DLR)
+ - Simplify a few more translated messages. (DLR)
- global.c:
shortcut_init()
- Remove redundant NANO_SMALL #ifdef. (DLR)
void not_found_msg(const char *str);
void search_abort(void);
void search_init_globals(void);
-int search_init(int replacing);
+int search_init(bool replacing);
int is_whole_word(int curr_pos, const char *datastr, const char
*searchword);
int findnextstr(int can_display_wrap, int wholeword, const filestruct
}
/* Set up the system variables for a search or replace. Return -1 if
- * the search should be cancelled (due to Cancel, Go to Line, or a
- * failed regcomp()). Return 0 on success, and 1 on rerun calling
- * program. Return -2 to run opposite program (search -> replace,
- * replace -> search).
+ * the search should be canceled (due to Cancel, Go to Line, or a failed
+ * regcomp()). Return 0 on success, and 1 on rerun calling program.
+ * Return -2 to run opposite program (search -> replace, replace ->
+ * search).
*
- * replacing = 1 if we call from do_replace(), 0 if called from
+ * replacing is TRUE if we call from do_replace(), FALSE if called from
* do_search(). */
-int search_init(int replacing)
+int search_init(bool replacing)
{
int i = 0;
char *buf;
/* Cancel any search, or just return with no previous search. */
if (i == -1 || (i < 0 && last_search[0] == '\0') ||
(!replacing && i == 0 && answer[0] == '\0')) {
- statusbar(_("Search Cancelled"));
+ statusbar(_("Cancelled"));
#ifndef NANO_SMALL
search_history.current = search_history.next;
#endif
if (i == -1) { /* Cancel. */
if (last_replace[0] != '\0')
answer = mallocstrcpy(answer, last_replace);
- statusbar(_("Replace Cancelled"));
+ statusbar(_("Cancelled"));
}
replace_abort();
return;