mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
vim-patch:9.1.1774: cannot calculate sha256 of a Blob
Problem: cannot calculate sha256() of a Blob
Solution: Change sha256() to accept a Blob or String argument
(thinca).
closes: vim/vim#18336
4150283b83
Co-authored-by: thinca <thinca@gmail.com>
This commit is contained in:
7
runtime/lua/vim/_meta/vimfn.lua
generated
7
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -8631,11 +8631,12 @@ function vim.fn.settagstack(nr, dict, action) end
|
||||
function vim.fn.setwinvar(nr, varname, val) end
|
||||
|
||||
--- Returns a String with 64 hex characters, which is the SHA256
|
||||
--- checksum of {string}.
|
||||
--- checksum of {expr}.
|
||||
--- {expr} is a String or a Blob.
|
||||
---
|
||||
--- @param string string
|
||||
--- @param expr string
|
||||
--- @return string
|
||||
function vim.fn.sha256(string) end
|
||||
function vim.fn.sha256(expr) end
|
||||
|
||||
--- Escape {string} for use as a shell command argument.
|
||||
---
|
||||
|
Reference in New Issue
Block a user