vim. allow use of 0 as timestamp
To remove the effective date you would now call the function like this:
call LedgerSetDate(line('.'), 'effective', -1)
This commit is contained in:
parent
66b39c46d1
commit
f8c804ac79
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ function! LedgerSetDate(lnum, type, ...) "{{{1
|
|||
if a:type ==? 'actual'
|
||||
let date[0] = formatted
|
||||
elseif a:type ==? 'effective'
|
||||
if time == 0
|
||||
if time < 0
|
||||
" remove effective date
|
||||
let date = [date[0]]
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue