Skip to content

Commit c9c5f6a

Browse files
authored
fix: Trigger finish_reconciling() when closing :Reconcile window
1 parent 46b4b11 commit c9c5f6a

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
@@ -982,7 +982,7 @@ function! ledger#reconcile(file, account, target_amount) abort
982982
augroup reconcile
983983
autocmd!
984984
execute "autocmd BufWritePost *.ldg,*.ledger call ledger#show_balance('" . l:file . "','" . a:account . "')"
985-
autocmd BufWipeout <buffer> call <sid>finish_reconciling()
985+
autocmd WinClosed <buffer> call <sid>finish_reconciling()
986986
augroup END
987987
" Add refresh shortcut
988988
execute "nnoremap <silent> <buffer> <c-l> :<c-u>call ledger#reconcile('"

0 commit comments

Comments
 (0)