0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen

Problem:    Vim9: backtick expansion doesn't work for :foldopen.
Solution:   Do recognize backtick expansion. (closes #7621)
This commit is contained in:
Bram Moolenaar
2021-01-05 19:23:28 +01:00
parent a79925a0a8
commit ecac591cce
3 changed files with 26 additions and 0 deletions

View File

@@ -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;