mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
revert: "refactor: use S_LEN macro" (#29319)
revert: "refactor: use S_LEN(s) instead of s, n (#29219)"
This reverts commit c37695a5d5
.
This commit is contained in:
@@ -3615,7 +3615,7 @@ static int spell_read_wordfile(spellinfo_T *spin, char *fname)
|
||||
|
||||
if (*line == '/') {
|
||||
line++;
|
||||
if (strncmp(line, S_LEN("encoding=")) == 0) {
|
||||
if (strncmp(line, "encoding=", 9) == 0) {
|
||||
if (spin->si_conv.vc_type != CONV_NONE) {
|
||||
smsg(0, _("Duplicate /encoding= line ignored in %s line %" PRIdLINENR ": %s"),
|
||||
fname, lnum, line - 1);
|
||||
@@ -3637,7 +3637,7 @@ static int spell_read_wordfile(spellinfo_T *spin, char *fname)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp(line, S_LEN("regions=")) == 0) {
|
||||
if (strncmp(line, "regions=", 8) == 0) {
|
||||
if (spin->si_region_count > 1) {
|
||||
smsg(0, _("Duplicate /regions= line ignored in %s line %" PRIdLINENR ": %s"),
|
||||
fname, lnum, line);
|
||||
@@ -4766,7 +4766,7 @@ void ex_mkspell(exarg_T *eap)
|
||||
char *arg = eap->arg;
|
||||
bool ascii = false;
|
||||
|
||||
if (strncmp(arg, S_LEN("-ascii")) == 0) {
|
||||
if (strncmp(arg, "-ascii", 6) == 0) {
|
||||
ascii = true;
|
||||
arg = skipwhite(arg + 6);
|
||||
}
|
||||
|
Reference in New Issue
Block a user