mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-24 14:46:42 +02:00
VimwikiTask: Use GENERIC_TASK regex to look for the parent task
This commit is contained in:
parent
a8cbbb55df
commit
cd05f83b49
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue