summaryrefslogtreecommitdiff
path: root/contrib/vim/ftplugin/ledger.vim
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2010-09-08 10:10:09 +0200
committerJohann Klähn <kljohann@gmail.com>2010-09-08 10:10:09 +0200
commitf8c804ac79a94fc8fd4c168f5d884d42a7c0bd08 (patch)
tree720e950e1111b69dd946547cf500b131f87daa10 /contrib/vim/ftplugin/ledger.vim
parent66b39c46d1cff25c5191c3a55dd14e9414413dca (diff)
downloadfork-ledger-f8c804ac79a94fc8fd4c168f5d884d42a7c0bd08.tar.gz
fork-ledger-f8c804ac79a94fc8fd4c168f5d884d42a7c0bd08.tar.bz2
fork-ledger-f8c804ac79a94fc8fd4c168f5d884d42a7c0bd08.zip
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)
Diffstat (limited to 'contrib/vim/ftplugin/ledger.vim')
-rw-r--r--contrib/vim/ftplugin/ledger.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim
index 1d624b14..ec1173b8 100644
--- a/contrib/vim/ftplugin/ledger.vim
+++ b/contrib/vim/ftplugin/ledger.vim
@@ -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