mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
fix(excmd): :trust executed even when inside false condition (#36032)
Problem: :trust is executed even when inside false condition.
Solution: Make skip_cmd() return true for CMD_trust, as ex_trust() does
not handle eap->skip itself.
(cherry picked from commit 2f35221774
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
9ce88d5cb9
commit
7304fc275e
@@ -1706,8 +1706,8 @@ mark a file as trusted or untrusted using the |:trust| command or the
|
||||
contents. The trust list is stored on disk, Nvim will
|
||||
re-use it after restarting.
|
||||
|
||||
[++deny] marks [file] (or current buffer if no [file]) as
|
||||
untrusted: it will never be executed, 'exrc' will
|
||||
[++deny] marks [file] (or current buffer if no [file])
|
||||
as untrusted: it will never be executed, 'exrc' will
|
||||
ignore it.
|
||||
|
||||
[++remove] removes [file] (or current buffer if no
|
||||
|
Reference in New Issue
Block a user