diff options
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/orgmode.fnl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fnl/plugins/orgmode.fnl b/fnl/plugins/orgmode.fnl index 288eeb0..0be49c7 100644 --- a/fnl/plugins/orgmode.fnl +++ b/fnl/plugins/orgmode.fnl @@ -50,12 +50,11 @@ (tset options-by-label item.label item))) (vim.ui.select options {:prompt data.prompt} (fn [choice] - ;; FIX: this code block - (when (not choice) - (lua "return ")) - (local option (. options-by-label choice)) - (when option.action - (option.action)))))) + (if choice + (do + (local option (. options-by-label choice)) + (when option.action + (option.action)))))))) (local opts {:org_agenda_files ["~/.local/share/org/**/*"] |