Mercurial > vim
diff src/globals.h @ 24488:f293bb501b30 v8.2.2784
patch 8.2.2784: Vim9: cannot use =expr in :substitute
Commit: https://github.com/vim/vim/commit/4c13721482d7786f92f5a56e43b0f5c499264b7e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 19 16:48:48 2021 +0200
patch 8.2.2784: Vim9: cannot use \=expr in :substitute
Problem: Vim9: cannot use \=expr in :substitute.
Solution: Compile the expression into instructions and execute them when
invoked.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Apr 2021 17:00:04 +0200 |
parents | a26f0fa12845 |
children | a878e5e892cf |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -1379,6 +1379,9 @@ EXTERN char_u no_lines_msg[] INIT(= N_(" 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];