This commit is contained in:
Justin M. Keyes
2019-09-13 18:51:13 -07:00
parent 3344cffe7b
commit 6aae0e7c94
11 changed files with 100 additions and 82 deletions

View File

@@ -2707,17 +2707,19 @@ int spell_check_sps(void)
if (ascii_isdigit(*buf)) {
s = buf;
sps_limit = getdigits_int(&s, true, 0);
if (*s != NUL && !ascii_isdigit(*s))
if (*s != NUL && !ascii_isdigit(*s)) {
f = -1;
} else if (STRCMP(buf, "best") == 0)
}
} else if (STRCMP(buf, "best") == 0) {
f = SPS_BEST;
else if (STRCMP(buf, "fast") == 0)
} else if (STRCMP(buf, "fast") == 0) {
f = SPS_FAST;
else if (STRCMP(buf, "double") == 0)
} else if (STRCMP(buf, "double") == 0) {
f = SPS_DOUBLE;
else if (STRNCMP(buf, "expr:", 5) != 0
&& STRNCMP(buf, "file:", 5) != 0)
} else if (STRNCMP(buf, "expr:", 5) != 0
&& STRNCMP(buf, "file:", 5) != 0) {
f = -1;
}
if (f == -1 || (sps_flags != 0 && f != 0)) {
sps_flags = SPS_BEST;