From 5df6a4c3bb4b65ff9f12a34de9e2174baf1bbfe4 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Wed, 21 Sep 2016 02:15:48 -0400 Subject: [PATCH] Fix #101 Add an extra open and closing parenthesis token to `taskfilter_args` to ensure that default filtering conditions are ANDed to the entire user provided filter. --- taskwiki/viewport.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taskwiki/viewport.py b/taskwiki/viewport.py index 99893f5..1423f20 100644 --- a/taskwiki/viewport.py +++ b/taskwiki/viewport.py @@ -73,7 +73,9 @@ class ViewPort(object): # Get the initial version of the taskfilter args taskfilter_args = list(constants.DEFAULT_VIEWPORT_VIRTUAL_TAGS) + taskfilter_args += "(" taskfilter_args += util.tw_modstring_to_args(filterstring) + taskfilter_args += ")" # Process syntactic sugar: Context expansion detected_contexts = []