Skip to content

Commit ed13e8e

Browse files
committed
Align currency with no decimal point correctly
1 parent 7b97c87 commit ed13e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ledger.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ function! ledger#align_commodity() abort
510510
endif
511511
if pos < 0
512512
" Find the position after the first digits
513-
let pos = matchend(rhs, '\m\d[^[:space:]]*')
513+
let pos = matchend(rhs, '\m\d[^[:space:]]*') - 1
514514
endif
515515
" Go to the column that allows us to align the decimal separator at g:ledger_align_at:
516516
if pos >= 0

0 commit comments

Comments
 (0)