Skip to content

Commit

Permalink
Fix autocompletion when cursor on last line. (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
abobov authored and alerque committed Jul 3, 2019
1 parent 3ddfb14 commit 3d76cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ledger.vim
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function! ledger#transactions(...)

let transactions = []
call cursor(lnum, 0)
while lnum && lnum <= end
while lnum && lnum < end
let trans = s:transaction.from_lnum(lnum)
if ! empty(trans)
call add(transactions, trans)
Expand Down

0 comments on commit 3d76cee

Please sign in to comment.