lists with functions and shortcuts.
* src/*.c: Several random whitespace and comment tweaks.
* src/global.c (replace_scs_for): Condense the function a bit.
+ * src/help.c (help_init): No need to keep looping when two are found.
2014-05-12 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_spell): Provide startup feedback, as for the linter.
/* Let's simply show the first two shortcuts from the list. */
for (s = sclist, scsfound = 0; s != NULL; s = s->next) {
- if (scsfound == 2)
- continue;
-
if (s->type == RAWINPUT)
continue;
ptr += 6;
} else {
ptr += sprintf(ptr, "(%s)\t", s->keystr);
+ break;
}
}
}