summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)