Mercurial > vim
diff src/evalvars.c @ 31111:f1cb6b4dbf72 v9.0.0890
patch 9.0.0890: no test for what patch 9.0.0827 fixes
Commit: https://github.com/vim/vim/commit/1573e73f1c743d6792de8ee4b6f5b99545ebd3fb
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 16 20:33:21 2022 +0000
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).
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Nov 2022 21:45:03 +0100 |
parents | d50d32026617 |
children | 684e6dfa2fba |
line wrap: on
line diff
--- a/src/evalvars.c +++ b/src/evalvars.c @@ -1343,6 +1343,11 @@ skip_var_one(char_u *arg, int include_ty 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);