We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b97c87 commit dbc683eCopy full SHA for dbc683e
autoload/ledger.vim
@@ -510,7 +510,10 @@ function! ledger#align_commodity() abort
510
endif
511
if pos < 0
512
" Find the position after the first digits
513
- let pos = matchend(rhs, '\m\d[^[:space:]]*')
+ let pos = matchend(rhs, '\m\d[^[:space:]]*') - 1
514
+ if pos >= 0
515
+ let pos = strchars(rhs[:pos])
516
+ endif
517
518
" Go to the column that allows us to align the decimal separator at g:ledger_align_at:
519
if pos >= 0
0 commit comments