0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0890: no test for what patch 9.0.0827 fixes

Problem:    No test for what patch 9.0.0827 fixes.
Solution:   Add a test (still doesn't fail when fix is reverted).
This commit is contained in:
Bram Moolenaar
2022-11-16 20:33:21 +00:00
parent 8303035d67
commit 1573e73f1c
4 changed files with 41 additions and 2 deletions

View File

@@ -1343,6 +1343,11 @@ skip_var_one(char_u *arg, int include_type)
if (*arg == '@' && arg[1] != NUL)
return arg + 2;
// termcap option name may have non-alpha characters
if (STRNCMP(arg, "&t_", 3) == 0 && arg[3] != NUL && arg[4] != NUL)
return arg + 5;
end = find_name_end(*arg == '$' || *arg == '&' ? arg + 1 : arg,
NULL, NULL, FNE_INCL_BR | FNE_CHECK_START);