Mercurial > vim
comparison src/normal.c @ 23272:a84e7abb0c92 v8.2.2182
patch 8.2.2182: Vim9: value of 'magic' is still relevant
Commit: https://github.com/vim/vim/commit/f4e2099e39ed4d71aed0f9a9579455aed5ec6cc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 21 19:59:08 2020 +0100
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 https://github.com/vim/vim/issues/7509)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Dec 2020 20:00:06 +0100 |
parents | b545334ae654 |
children | b7d3c79075c5 |
comparison
equal
deleted
inserted
replaced
23271:50ebb4982f37 | 23272:a84e7abb0c92 |
---|---|
3736 vim_free(p); | 3736 vim_free(p); |
3737 } | 3737 } |
3738 else | 3738 else |
3739 { | 3739 { |
3740 if (cmdchar == '*') | 3740 if (cmdchar == '*') |
3741 aux_ptr = (char_u *)(p_magic ? "/.*~[^$\\" : "/^$\\"); | 3741 aux_ptr = (char_u *)(magic_isset() ? "/.*~[^$\\" : "/^$\\"); |
3742 else if (cmdchar == '#') | 3742 else if (cmdchar == '#') |
3743 aux_ptr = (char_u *)(p_magic ? "/?.*~[^$\\" : "/?^$\\"); | 3743 aux_ptr = (char_u *)(magic_isset() ? "/?.*~[^$\\" : "/?^$\\"); |
3744 else if (tag_cmd) | 3744 else if (tag_cmd) |
3745 { | 3745 { |
3746 if (curbuf->b_help) | 3746 if (curbuf->b_help) |
3747 // ":help" handles unescaped argument | 3747 // ":help" handles unescaped argument |
3748 aux_ptr = (char_u *)""; | 3748 aux_ptr = (char_u *)""; |