nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 0b9eb8229375ef4bbd57a3a2418a949895610b90
parent 9fcf3e5b59e76356bf227b95a2d25b6539be5f13
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed,  5 Sep 2018 06:47:21 -0400

Redraw screen after editing note

Under certain circumstances the screen would become polluted with shell
history when returning from the editor. The fix is to clear and redraw
the screen in this scenario.

Closes #3

Diffstat:
Mnncli/nncli.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/nncli/nncli.py b/nncli/nncli.py @@ -131,6 +131,10 @@ def exec_cmd_on_note(self, note, cmd=None, raw=False): content = None temp.tempfile_delete(tf) + + self.nncli_loop.screen.clear() + self.nncli_loop.draw_screen() + return content def exec_diff_on_note(self, note, old_note):