diff options
author | Johann Klähn <kljohann@gmail.com> | 2010-09-15 20:08:22 +0200 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2010-09-15 20:08:22 +0200 |
commit | 48866466141d1ad0874c676a251cee9d57d99fdb (patch) | |
tree | b3bc59479ce6df240ec58d1b0194333c466c5fc4 /contrib/vim/ftplugin | |
parent | 453327a1806d728668ffa190ea67f5d693e30362 (diff) | |
download | fork-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.vim | 2 |
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) |