diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-19 16:48:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-19 16:48:48 +0200 |
commit | 4c13721482d7786f92f5a56e43b0f5c499264b7e (patch) | |
tree | 2aae28c81b61721cb9ecc5d9aee66bb51d67e371 /src/globals.h | |
parent | e8209b91b9974da95899b51dba4058b411d04d5b (diff) | |
download | vim-git-4c13721482d7786f92f5a56e43b0f5c499264b7e.tar.gz |
patch 8.2.2784: Vim9: cannot use \=expr in :substitutev8.2.2784
Problem: Vim9: cannot use \=expr in :substitute.
Solution: Compile the expression into instructions and execute them when
invoked.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 51a69465c..017c059a4 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1379,6 +1379,9 @@ EXTERN char_u no_lines_msg[] INIT(= N_("--No lines in buffer--")); EXTERN long sub_nsubs; // total number of substitutions EXTERN linenr_T sub_nlines; // total number of lines changed +// Used when a compiled :substitute has an expression. +EXTERN struct subs_expr_S *substitute_instr INIT(= NULL); + // table to store parsed 'wildmode' EXTERN char_u wim_flags[4]; |