diff options
| author | HumanEntity <human_entity@icloud.com> | 2023-12-24 23:17:50 +0100 |
|---|---|---|
| committer | HumanEntity <human_entity@icloud.com> | 2023-12-24 23:17:50 +0100 |
| commit | 86514ef2d77dc16172d239a27470c30a5234b7d4 (patch) | |
| tree | 41ba44f51ac0445ebfaf04547be79a3d1bde0b93 /lua/denote | |
| parent | 2b2f7f954a8ca24acde44e4e4497b27775ed83b9 (diff) | |
| download | simple-denote.nvim-86514ef2d77dc16172d239a27470c30a5234b7d4.tar.gz | |
Added some nil checking
Diffstat (limited to 'lua/denote')
| -rw-r--r-- | lua/denote/init.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/denote/init.lua b/lua/denote/init.lua index 814653f..b96704b 100644 --- a/lua/denote/init.lua +++ b/lua/denote/init.lua @@ -26,11 +26,15 @@ function M.note() end) vim.ui.input({ prompt = "Enter tags: " }, function(input) - if input ~= "" then + if input ~= "" and input then tags = splitspace(input) end end) + if name == "" then + error("Didn't specify name") + end + U.note(name, tags) end |
