diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-07-28 22:23:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-28 22:23:07 -0400 |
| commit | 029b7a149fa77cefe45e8df5524ef41ed4ee78eb (patch) | |
| tree | b3a64bca38782c3b43f307dad58f54213bd97295 /runtime/lua/vim/secure.lua | |
| parent | dc67ba948eec0a5628eff0b15ce87a7d27f58bb3 (diff) | |
| parent | dc3a30cfbb8304e10cff894a30c56fe43fc895ec (diff) | |
| download | rneovim-029b7a149fa77cefe45e8df5524ef41ed4ee78eb.tar.gz rneovim-029b7a149fa77cefe45e8df5524ef41ed4ee78eb.tar.bz2 rneovim-029b7a149fa77cefe45e8df5524ef41ed4ee78eb.zip | |
Merge #35000 docs: lsp, ui events, dev guidance
Diffstat (limited to 'runtime/lua/vim/secure.lua')
| -rw-r--r-- | runtime/lua/vim/secure.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/lua/vim/secure.lua b/runtime/lua/vim/secure.lua index 6e800e2c1a..e5d567ba0c 100644 --- a/runtime/lua/vim/secure.lua +++ b/runtime/lua/vim/secure.lua @@ -121,16 +121,20 @@ function M.read(path) return contents end - local dir_msg = ' To enable it, choose (v)iew then run `:trust`.' + local msg2 = ' To enable it, choose (v)iew then run `:trust`:' local choices = '&ignore\n&view\n&deny' if hash == 'directory' then - dir_msg = ' DIRECTORY trust is decided only by its name, not its contents.' + msg2 = ' DIRECTORY trust is decided only by name, not contents:' choices = '&ignore\n&view\n&deny\n&allow' end -- File either does not exist in trust database or the hash does not match - local ok, result = - pcall(vim.fn.confirm, string.format('%s is not trusted.%s', fullpath, dir_msg), choices, 1) + local ok, result = pcall( + vim.fn.confirm, + string.format('exrc: Found untrusted code.%s\n%s', msg2, fullpath), + choices, + 1 + ) if not ok and result ~= 'Keyboard interrupt' then error(result) |