2015-08-16 Benno Schulenberg <bensberg@justemail.net>
* src/help.c (help_init, help_line_len): Avoid wide paragraphs of text
in the help screens: wrap them at 74 columns if the screen is wider.
+ * src/help.c (help_init): Reduce the scope of a variable.
2015-08-13 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (do_find_bracket): Remove mistaken comparison between
char *ptr;
const subnfunc *f;
const sc *s;
- int scsfound = 0;
#ifndef NANO_TINY
bool old_whitespace = ISSET(WHITESPACE_DISPLAY);
/* Now add our shortcut info. */
for (f = allfuncs; f != NULL; f = f->next) {
+ int scsfound = 0;
if ((f->menus & currmenu) == 0)
continue;
/* Let's simply show the first two shortcuts from the list. */
- for (s = sclist, scsfound = 0; s != NULL; s = s->next) {
+ for (s = sclist; s != NULL; s = s->next) {
if ((s->menus & currmenu) == 0)
continue;