Skip to content

Commit

Permalink
Fix: Modifications on task in multiple viewports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nagakirank committed May 26, 2018
1 parent ffe53db commit 808ee8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions taskwiki/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,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):
Expand Down

0 comments on commit 808ee8f

Please sign in to comment.