summaryrefslogtreecommitdiff
path: root/contrib/vim/ftplugin
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2010-09-15 20:08:22 +0200
committerJohann Klähn <kljohann@gmail.com>2010-09-15 20:08:22 +0200
commit48866466141d1ad0874c676a251cee9d57d99fdb (patch)
treeb3bc59479ce6df240ec58d1b0194333c466c5fc4 /contrib/vim/ftplugin
parent453327a1806d728668ffa190ea67f5d693e30362 (diff)
downloadfork-ledger-48866466141d1ad0874c676a251cee9d57d99fdb.tar.gz
fork-ledger-48866466141d1ad0874c676a251cee9d57d99fdb.tar.bz2
fork-ledger-48866466141d1ad0874c676a251cee9d57d99fdb.zip
vim. fix off-by-one bug in ToggleTransactionState
Diffstat (limited to 'contrib/vim/ftplugin')
-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 326c6c72..2a0ce9eb 100644
--- a/contrib/vim/ftplugin/ledger.vim
+++ b/contrib/vim/ftplugin/ledger.vim
@@ -222,7 +222,7 @@ function! LedgerToggleTransactionState(lnum, ...)
let old = has_key(trans, 'state') ? trans['state'] : ' '
let i = stridx(chars, old) + 1
- let new = chars[i > len(chars) ? 0 : i]
+ let new = chars[i >= len(chars) ? 0 : i]
call trans.set_state(new)