Skip to content

Commit 2b3a4cb

Browse files
adamipcalerque
authored andcommitted
fix: Allow negative values in entry command by disabling further option processing
1 parent dbc683e commit 2b3a4cb

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)