Skip to content

Commit 8c78cdc

Browse files
committedJul 5, 2021
Address feedback
1 parent 748f7ec commit 8c78cdc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎lua/orgmode/agenda/init.lua

+3-4
Original file line numberDiff line numberDiff line change
@@ -307,16 +307,15 @@ end
307307

308308
-- TODO: Add PROP/TODO Query
309309
function Agenda:tags(opts)
310-
local tags
311310
opts = opts or {}
311+
local tags = opts.tags
312+
312313
if opts.clear_search then
313314
self.last_search = ''
314315
end
315316

316-
if not opts.tags then
317+
if not tags then
317318
tags = vim.fn.input('Match: ', self.last_search, 'customlist,v:lua.orgmode.autocomplete_agenda_filter_tags')
318-
else
319-
tags = opts.tags
320319
end
321320
if vim.trim(tags) == '' then
322321
return utils.echo_warning('Invalid tag.')

0 commit comments

Comments
 (0)