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.
This commit is contained in:
zeertzjq
2025-10-05 10:21:44 +08:00
committed by GitHub
parent ea124068f2
commit 2f35221774
3 changed files with 10 additions and 11 deletions

View File

@@ -1714,8 +1714,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