mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim-patch:8.2.2182: Vim9: value of 'magic' is still relevant
Problem: Vim9: value of 'magic' is still relevant.
Solution: Always behave like 'magic' is on in Vim9 script (closes vim/vim#7509)
f4e2099e39
EX_NONWHITE_OK is N/A: only applies to Vim9 script.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -3507,9 +3507,9 @@ static void nv_ident(cmdarg_T *cap)
|
||||
xfree(p);
|
||||
} else {
|
||||
if (cmdchar == '*') {
|
||||
aux_ptr = (p_magic ? "/.*~[^$\\" : "/^$\\");
|
||||
aux_ptr = (magic_isset() ? "/.*~[^$\\" : "/^$\\");
|
||||
} else if (cmdchar == '#') {
|
||||
aux_ptr = (p_magic ? "/?.*~[^$\\" : "/?^$\\");
|
||||
aux_ptr = (magic_isset() ? "/?.*~[^$\\" : "/?^$\\");
|
||||
} else if (tag_cmd) {
|
||||
if (curbuf->b_help) {
|
||||
// ":help" handles unescaped argument
|
||||
|
Reference in New Issue
Block a user