- rcfile.c:
- Move "rebinddelete" up in the list of options so that the list
is in alphabetical order. (DLR)
+ - Explicitly check for rcopts[i].name's being "tabsize" to avoid
+ a spurious error under some circumstances about tabsize's
+ being 0 when there's no tabsize entry in the rcfile. (DLR)
- search.c:
regexp_init()
- Overhaul for efficiency. Also check if regcomp() failed, and
* such that the last word before it ended at or before fill. If there
* is no such point, we settle for the first legal wrap point.
*
- * A "legal wrap point" is a white-space character that is not followed by
- * white-space.
+ * A "legal wrap point" is a whitespace character that is not followed
+ * by whitespace.
*
* If there is no legal wrap point or we found the last character of the
* line, we should return without wrapping.
* Note that the initial indentation does not count as a legal wrap
* point if we are going to auto-indent!
*
- * Note that the code below could be optimised, by not calling strnlenpt()
- * so often. */
+ * Note that the code below could be optimized, by not calling
+ * strnlenpt() so often. */
#ifndef NANO_SMALL
if (ISSET(AUTOINDENT))
#endif /* !DISABLE_SPELLER */
#if !defined(NANO_SMALL) || !defined(DISABLE_JUSTIFY)
-/* The "indentation" of a line is the white-space between the quote part
- * and the non-white-space of the line. */
+/* The "indentation" of a line is the whitespace between the quote part
+ * and the non-whitespace of the line. */
size_t indent_length(const char *line)
{
size_t len = 0;
alt_speller = mallocstrcpy(NULL, option);
else
#endif
- {
+ if (!strcasecmp(rcopts[i].name, "tabsize")) {
char *first_error;
/* Using strtol instead of atoi lets us