diff --git a/src/browser.c b/src/browser.c index 48cc4ff2..fe8c9dc0 100644 --- a/src/browser.c +++ b/src/browser.c @@ -744,9 +744,9 @@ void findnextfile(const char *needle) /* If the needle matches, we're done. And if we're back at the file * where we started, it is the only occurrence. */ if (strstrwrapper(thename, needle, thename)) { - if (looking_at == selected) + if (looking_at == selected) statusbar(_("This is the only occurrence")); - break; + break; } /* If we're back at the beginning and didn't find any match... */ diff --git a/src/color.c b/src/color.c index 3362b568..75e92432 100644 --- a/src/color.c +++ b/src/color.c @@ -256,7 +256,7 @@ void color_update(void) /* Now try and find a syntax that matches the magic string. */ if (magicstring != NULL) { for (sint = syntaxes; sint != NULL; sint = sint->next) { - if (found_in_list(sint->magics, magicstring)) + if (found_in_list(sint->magics, magicstring)) break; } } diff --git a/src/global.c b/src/global.c index 7160cd27..9bf81687 100644 --- a/src/global.c +++ b/src/global.c @@ -964,9 +964,9 @@ void shortcut_init(void) N_("Go To Text"), IFSCHELP(nano_whereis_msg), BLANKAFTER, VIEW); #ifndef NANO_TINY - add_to_funcs(dos_format_void, MWRITEFILE, + add_to_funcs(dos_format_void, MWRITEFILE, N_("DOS Format"), IFSCHELP(nano_dos_msg), TOGETHER, NOVIEW); - add_to_funcs(mac_format_void, MWRITEFILE, + add_to_funcs(mac_format_void, MWRITEFILE, N_("Mac Format"), IFSCHELP(nano_mac_msg), TOGETHER, NOVIEW); /* If we're using restricted mode, the Append, Prepend, and Backup toggles diff --git a/src/rcfile.c b/src/rcfile.c index d18ab44e..c760c3ff 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -728,7 +728,7 @@ void parse_colors(char *ptr, int rex_flags) fgstr = ++ptr; ptr = parse_next_regex(ptr); if (ptr == NULL) - break; + break; /* If the start regex was invalid, skip past the end regex * to stay in sync. */ @@ -889,10 +889,10 @@ static void check_vitals_mapped(void) const sc *s = first_sc_for(inmenus[v], f->scfunc); if (!s) { fprintf(stderr, _("Fatal error: no keys mapped for function " - "\"%s\". Exiting.\n"), f->desc); + "\"%s\". Exiting.\n"), f->desc); fprintf(stderr, _("If needed, use nano with the -I option " - "to adjust your nanorc settings.\n")); - exit(1); + "to adjust your nanorc settings.\n")); + exit(1); } break; } @@ -1046,9 +1046,9 @@ void parse_rcfile(FILE *rcstream #endif /* First handle unsetting. */ if (set == -1) { - if (rcopts[i].flag != 0) + if (rcopts[i].flag != 0) UNSET(rcopts[i].flag); - else + else rcfile_error(N_("Cannot unset option \"%s\""), rcopts[i].name); continue; } diff --git a/src/text.c b/src/text.c index a73b3844..cf0690c7 100644 --- a/src/text.c +++ b/src/text.c @@ -2187,9 +2187,9 @@ void do_justify(bool full_justify) #endif /* Break the current line. */ - if (ISSET(JUSTIFY_TRIM)) { - while (break_pos > 0 && - is_blank_mbchar(&openfile->current->data[break_pos-1])) { + if (ISSET(JUSTIFY_TRIM)) { + while (break_pos > 0 && + is_blank_mbchar(&openfile->current->data[break_pos - 1])) { break_pos--; } } diff --git a/src/winio.c b/src/winio.c index ec107a72..1c53eac1 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1306,7 +1306,7 @@ int get_control_kbinput(int kbinput) { int retval; - /* Ctrl-Space (Ctrl-2, Ctrl-@, Ctrl-`) */ + /* Ctrl-Space (Ctrl-2, Ctrl-@, Ctrl-`) */ if (kbinput == ' ' || kbinput == '2') retval = NANO_CONTROL_SPACE; /* Ctrl-/ (Ctrl-7, Ctrl-_) */ @@ -1633,7 +1633,7 @@ const sc *get_shortcut(int *kbinput) && meta_key == (s->type == META)) { #ifdef DEBUG fprintf (stderr, "matched seq \"%s\", and btw meta was %d (menu is %x from %x)\n", - s->keystr, meta_key, currmenu, s->menus); + s->keystr, meta_key, currmenu, s->menus); #endif return s; }