vim. fix off-by-one bug in ToggleTransactionState
This commit is contained in:
parent
453327a180
commit
4886646614
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue