From d529de4344f75cdc5480672b6b4bcca87f1e1f77 Mon Sep 17 00:00:00 2001 From: Adam Wendt Date: Wed, 4 Dec 2024 09:44:48 -0500 Subject: [PATCH] Fix ledger/vim-ledger issue #163 by disabling further option processing before passing the entry. --- autoload/ledger.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ledger.vim b/autoload/ledger.vim index cfbe168..85232ae 100644 --- a/autoload/ledger.vim +++ b/autoload/ledger.vim @@ -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