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:
Johann Klähn 2010-09-08 10:10:09 +02:00
parent 66b39c46d1
commit f8c804ac79

View file

@ -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