Subject: | Overwrites journal when called without '--resume' |
When the program vojournal is called without option '--resume' any existing vimoutliner file is truncated before calling the editor.
This is especially annoying when the program is called more than one time a day.
Test:
$ mkdir -p t/2015/02/30
$ echo Test > t/2015/02/20150230.otl
$ perl -Ilib bin/vojournal --basedir=t --date=20150230 --editor=cat --resume
Test
$ perl -Ilib bin/vojournal --basedir=t --date=20150230 --editor=cat
; 2015-02-30
This happens with version v0.4.1