Skip to content

Commit

Permalink
[fix] Fixed TWBufQueryTasks did not clear previous tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
huantrinh1802 committed Sep 29, 2024
1 parent d0aaf37 commit 021e493
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/m_taskwarrior_d/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ function M.query_tasks_in_buffer()
local current_line, _ = M.utils.get_line(line_number)
local _, _, query, report = string.match(current_line, M._config["task_query_pattern"].lua)
if query then
M.utils.delete_scoped_tasks(line_number)
M.query_tasks(line_number, query, report)
end
end
Expand Down

0 comments on commit 021e493

Please sign in to comment.