Skip to content

Commit d529de4

Browse files
committed
Fix ledger/vim-ledger issue ledger#163 by disabling further option processing before passing the entry.
1 parent dbc683e commit d529de4

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
@@ -674,7 +674,7 @@ endf
674674
" Use current line as input to ledger entry and replace with output. If there
675675
" are errors, they are echoed instead.
676676
function! ledger#entry() abort
677-
let l:output = split(system(s:ledger_cmd(g:ledger_main, join(['entry', getline('.')]))), '\n')
677+
let l:output = split(system(s:ledger_cmd(g:ledger_main, join(['--', 'entry', getline('.')]))), '\n')
678678
" Filter out warnings
679679
let l:output = filter(l:output, "v:val !~? '^Warning: '")
680680
" Errors may occur

0 commit comments

Comments
 (0)