Skip to content

Commit 71bbfe5

Browse files
adamipcalerque
authored andcommitted
fix: Allow negative values in entry command by disabling further option processing
1 parent 90368b8 commit 71bbfe5

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

0 commit comments

Comments
 (0)