diff options
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 |
