VimwikiTask: Use GENERIC_TASK regex to look for the parent task

This commit is contained in:
Tomas Babej 2014-12-29 10:43:40 +01:00
parent a8cbbb55df
commit cd05f83b49

View file

@ -170,8 +170,8 @@ class VimwikiTask(object):
def find_parent_task(self):
for i in reversed(range(0, self.line_number)):
if re.search(TASKS_TO_SAVE_TO_TW, vim.current.buffer[i]):
task = VimwikiTask(line, i)
if re.search(GENERIC_TASK, vim.current.buffer[i]):
task = cache[i]
if len(task.indent) < len(self.indent):
return task