ex_getln: Fix :lang code execution when skipping

Fixes #6727
This commit is contained in:
ZyX
2017-05-12 20:05:24 +03:00
parent 8b171b8c50
commit 50398e10fe

View File

@@ -5401,7 +5401,7 @@ char *script_get(exarg_T *const eap, size_t *const lenp)
if (cmd[0] != '<' || cmd[1] != '<' || eap->getline == NULL) {
*lenp = STRLEN(eap->arg);
return xmemdupz(eap->arg, *lenp);
return eap->skip ? NULL : xmemdupz(eap->arg, *lenp);
}
garray_T ga = { .ga_data = NULL, .ga_len = 0 };