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 9850f4d commit d9ea62eCopy full SHA for d9ea62e
autoload/ledger.vim
@@ -501,8 +501,7 @@ endf
501
function! ledger#autocomplete_and_align()
502
if pumvisible()
503
return "\<c-n>"
504
- " See http://stackoverflow.com/questions/23323747/vim-vimscript-get-exact-character-under-the-cursor
505
- elseif matchstr(getline('.'), '\%' . (col('.')-1) . 'c.') =~ '\d'
+ elseif match(getline('.'), '\s.*\d\%'.col('.').'c') > -1
506
norm h
507
call ledger#align_amount_at_cursor()
508
return "\<c-o>A"
0 commit comments