mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 9.1.1357: Vim incorrectly escapes tags with "[" in a help buffer
Problem: Vim incorrectly escapes tags containing "[" in a help buffer
Solution: check if the buffer has the "help" filetype set, instead of
already being a help buffer (Phạm Bình An)
fixes: #17224
closes: #17232
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Phạm Bình An <phambinhanctb2004@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
f5bfc48c05
commit
6af20a9be3
@@ -3579,7 +3579,7 @@ nv_ident(cmdarg_T *cap)
|
||||
aux_ptr = (char_u *)(magic_isset() ? "/?.*~[^$\\" : "/?^$\\");
|
||||
else if (tag_cmd)
|
||||
{
|
||||
if (curbuf->b_help)
|
||||
if (STRCMP(curbuf->b_p_ft, "help") == 0)
|
||||
// ":help" handles unescaped argument
|
||||
aux_ptr = (char_u *)"";
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user