diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-13 13:12:27 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-13 13:12:27 +0000 |
commit | 4f3321f704ec0c2a522f12a580530283ae28856f (patch) | |
tree | 0cd24963bf722d7f5cc4a438ede4dcbd5093a7d5 /src/vim9compile.c | |
parent | 986b0fd0c550d9834a3cc45dd87555c13152c391 (diff) | |
download | vim-git-4f3321f704ec0c2a522f12a580530283ae28856f.tar.gz |
patch 8.2.4556: test fails without the +job or +channel featurev8.2.4556
Problem: Test fails without the +job or +channel feature. (Dominique Pellé)
Solution: Adjust #ifdefs. Pass on skip flag. (closes #9942)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 25376d052..696301f0f 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -762,6 +762,7 @@ fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx) { eap->getline = exarg_getline; eap->cookie = cctx; + eap->skip = cctx->ctx_skip == SKIP_YES; } /* @@ -855,7 +856,8 @@ compile_nested_function(exarg_T *eap, cctx_T *cctx, garray_T *lines_to_free) semsg(_(e_namespace_not_supported_str), name_start); return NULL; } - if (check_defined(name_start, name_end - name_start, cctx, + if (cctx->ctx_skip != SKIP_YES + && check_defined(name_start, name_end - name_start, cctx, NULL, FALSE) == FAIL) return NULL; if (!ASCII_ISUPPER(is_global ? name_start[2] : name_start[0])) |