Skip to content

Commit

Permalink
Fix ledger/vim-ledger issue ledger#163 by disabling further option pr…
Browse files Browse the repository at this point in the history
…ocessing before passing the entry.
  • Loading branch information
adamipc committed Dec 4, 2024
1 parent dbc683e commit d529de4
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 @@ -674,7 +674,7 @@ endf
" Use current line as input to ledger entry and replace with output. If there
" are errors, they are echoed instead.
function! ledger#entry() abort
let l:output = split(system(s:ledger_cmd(g:ledger_main, join(['entry', getline('.')]))), '\n')
let l:output = split(system(s:ledger_cmd(g:ledger_main, join(['--', 'entry', getline('.')]))), '\n')
" Filter out warnings
let l:output = filter(l:output, "v:val !~? '^Warning: '")
" Errors may occur
Expand Down

0 comments on commit d529de4

Please sign in to comment.