comparison src/vim9compile.c @ 23521:0ef920a03380 v8.2.2303

patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen Commit: https://github.com/vim/vim/commit/ecac591cce23919059a5d93ed2e94541b1be99b5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 5 19:23:28 2021 +0100 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 https://github.com/vim/vim/issues/7621)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Jan 2021 19:30:04 +0100
parents 36bf9a6fbd4c
children 54ec7c8b7459
comparison
equal deleted inserted replaced
23520:9c0c0d1a38f6 23521:0ef920a03380
7501 if (*p == delim) 7501 if (*p == delim)
7502 { 7502 {
7503 eap->arg = p + 1; 7503 eap->arg = p + 1;
7504 has_expr = TRUE; 7504 has_expr = TRUE;
7505 } 7505 }
7506 }
7507
7508 if (eap->cmdidx == CMD_folddoopen || eap->cmdidx == CMD_folddoclosed)
7509 {
7510 // TODO: should only expand when appropriate for the command
7511 eap->arg = skiptowhite(eap->arg);
7512 has_expr = TRUE;
7506 } 7513 }
7507 7514
7508 if (has_expr && (p = (char_u *)strstr((char *)eap->arg, "`=")) != NULL) 7515 if (has_expr && (p = (char_u *)strstr((char *)eap->arg, "`=")) != NULL)
7509 { 7516 {
7510 int count = 0; 7517 int count = 0;