diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-05 19:23:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-05 19:23:28 +0100 |
commit | ecac591cce23919059a5d93ed2e94541b1be99b5 (patch) | |
tree | 911580be45a1b9c47d876ada0ecf5076eafac8ec /src/vim9compile.c | |
parent | a79925a0a8f00577782090859eb0ef69e220d4aa (diff) | |
download | vim-git-8.2.2303.tar.gz |
patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopenv8.2.2303
Problem: Vim9: backtick expansion doesn't work for :foldopen.
Solution: Do recognize backtick expansion. (closes #7621)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index cf5cff859..67307f8a9 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -7505,6 +7505,13 @@ compile_exec(char_u *line, exarg_T *eap, cctx_T *cctx) } } + if (eap->cmdidx == CMD_folddoopen || eap->cmdidx == CMD_folddoclosed) + { + // TODO: should only expand when appropriate for the command + eap->arg = skiptowhite(eap->arg); + has_expr = TRUE; + } + if (has_expr && (p = (char_u *)strstr((char *)eap->arg, "`=")) != NULL) { int count = 0; |