eval: Do not supply S_LEN to strncmp

It may be a macro as well.
This commit is contained in:
ZyX 2017-03-25 22:35:34 +03:00
parent 8daf756fb6
commit 29bad04f9e

View File

@ -7967,7 +7967,7 @@ static void f_execute(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (s == NULL) {
return;
}
if (strncmp(s, S_LEN("silent")) == 0) {
if (strncmp(s, "silent", 6) == 0) {
msg_silent++;
}
if (strcmp(s, "silent!") == 0) {