comparison src/ex_docmd.c @ 23372:86d155b29dd7 v8.2.2229

patch 8.2.2229: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/39cb2dab18e85fc60f116a4543e433616872b690 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 27 17:35:18 2020 +0100 patch 8.2.2229: build failure without the +eval feature Problem: build failure without the +eval feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Dec 2020 17:45:04 +0100
parents 622e90acea5d
children 8e956ea07bb2
comparison
equal deleted inserted replaced
23371:b0000757445c 23372:86d155b29dd7
8631 int off = 0; 8631 int off = 0;
8632 8632
8633 switch (spec_idx) 8633 switch (spec_idx)
8634 { 8634 {
8635 case SPEC_PERC: 8635 case SPEC_PERC:
8636 #ifdef FEAT_EVAL
8636 if (!in_vim9script() || src[1] != '%') 8637 if (!in_vim9script() || src[1] != '%')
8638 #endif
8637 { 8639 {
8638 // '%': current file 8640 // '%': current file
8639 if (curbuf->b_fname == NULL) 8641 if (curbuf->b_fname == NULL)
8640 { 8642 {
8641 result = (char_u *)""; 8643 result = (char_u *)"";
8646 result = curbuf->b_fname; 8648 result = curbuf->b_fname;
8647 tilde_file = STRCMP(result, "~") == 0; 8649 tilde_file = STRCMP(result, "~") == 0;
8648 } 8650 }
8649 break; 8651 break;
8650 } 8652 }
8653 #ifdef FEAT_EVAL
8651 // "%%" alternate file 8654 // "%%" alternate file
8652 off = 1; 8655 off = 1;
8653 // FALLTHROUGH 8656 // FALLTHROUGH
8657 #endif
8654 8658
8655 case SPEC_HASH: // '#' or "#99": alternate file 8659 case SPEC_HASH: // '#' or "#99": alternate file
8656 if (off == 0 ? src[1] == '#' : src[2] == '%') 8660 if (off == 0 ? src[1] == '#' : src[2] == '%')
8657 { 8661 {
8658 // "##" or "%%%": the argument list 8662 // "##" or "%%%": the argument list