From b022833076b3feb8f5e52921653ed91006667e6c Mon Sep 17 00:00:00 2001 From: Naga Kiran Date: Sat, 26 May 2018 21:33:27 +0530 Subject: [PATCH] Fix: Modifications on task in multiple viewports Currently, after modifying a task, it's updating only the task line where the command is issued (like \td for "done") and if the same task is being shown in another viewport, that line is not reflected with modifications. So, on saving the file, it reverts the modifications. To handle, updating the entire buffer on task modifications --- taskwiki/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/taskwiki/main.py b/taskwiki/main.py index ff7e3efa4..aa73f3884 100644 --- a/taskwiki/main.py +++ b/taskwiki/main.py @@ -111,9 +111,10 @@ def done(self): vimwikitask.update_from_task() vimwikitask.update_in_buffer() print(u"Task \"{0}\" completed.".format(vimwikitask['description'])) + WholeBuffer.update_from_tw() - cache().buffer.push() - self.save_action('done') + # cache().buffer.push() + # self.save_action('done') @errors.pretty_exception_handler def info(self):