Skip to content

Commit 39530f3

Browse files
author
Lifepillar
committed
Use g:ledger_main instead of % in #entry().
1 parent b14c7f5 commit 39530f3

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
@@ -399,7 +399,7 @@ func! ledger#entry()
399399
let l = line('.') - 1 " Insert transaction at the current line (i.e., below the line above the current one)
400400
let query = getline('.')
401401
normal "_dd
402-
exec l . 'read !' g:ledger_bin '-f' shellescape(expand('%')) 'entry' shellescape(query)
402+
exec l . 'read !' g:ledger_bin '-f' shellescape(expand(g:ledger_main)) 'entry' shellescape(query)
403403
endfunc
404404

405405
" Report generation {{{1

0 commit comments

Comments
 (0)