diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 12:00:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 12:00:26 +0800 |
commit | 50048051565f84b8b75a50f4cfdc5147f861e42b (patch) | |
tree | edf413e2f839c19f48dcd93be5c76afa0cf597e3 /src/nvim/cmdexpand.c | |
parent | 81722896e4a6d17dbf33325d344253e44a11e9ed (diff) | |
parent | 199c7c28989a3c36447ef56b71c7b84756950a11 (diff) | |
download | rneovim-50048051565f84b8b75a50f4cfdc5147f861e42b.tar.gz rneovim-50048051565f84b8b75a50f4cfdc5147f861e42b.tar.bz2 rneovim-50048051565f84b8b75a50f4cfdc5147f861e42b.zip |
Merge pull request #20939 from zeertzjq/vim-8.2.0502
vim-patch:8.2.{0502,0612}
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index ca95a9a24e..480f3aa18c 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -1246,7 +1246,7 @@ static const char *set_context_by_cmdname(const char *cmd, cmdidx_T cmdidx, cons arg = (const char *)skipwhite(skiptowhite(arg)); if (*arg != NUL) { xp->xp_context = EXPAND_NOTHING; - arg = (const char *)skip_regexp((char *)arg + 1, (uint8_t)(*arg), p_magic, NULL); + arg = (const char *)skip_regexp((char *)arg + 1, (uint8_t)(*arg), p_magic); } } return (const char *)find_nextcmd(arg); @@ -1285,7 +1285,7 @@ static const char *set_context_by_cmdname(const char *cmd, cmdidx_T cmdidx, cons if (delim) { // Skip "from" part. arg++; - arg = (const char *)skip_regexp((char *)arg, delim, p_magic, NULL); + arg = (const char *)skip_regexp((char *)arg, delim, p_magic); } // Skip "to" part. while (arg[0] != NUL && (uint8_t)arg[0] != delim) { |