diff options
Diffstat (limited to 'lua/encrypt/helpers.lua')
| -rw-r--r-- | lua/encrypt/helpers.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/encrypt/helpers.lua b/lua/encrypt/helpers.lua index b740f28..c88b448 100644 --- a/lua/encrypt/helpers.lua +++ b/lua/encrypt/helpers.lua @@ -6,6 +6,9 @@ local getPasswordFactory = function() local key = string.format("%s", vim.fn.bufnr()) if bufferPasswordMap[key] == nil then password = vim.fn.inputsecret("Enter password: ") + if password == "" then + vim.notify("Password is cancelled", vim.log.levels.WARN) + end bufferPasswordMap[key] = password end return bufferPasswordMap[key] |
