mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(beancount): hangs when completion cache is empty
This commit is contained in:
@ -63,8 +63,9 @@ will theirs, recursively)."
|
||||
(with-current-buffer (let ((win (minibuffer-selected-window)))
|
||||
(if (window-live-p win) (window-buffer win)
|
||||
(current-buffer)))
|
||||
(with-memoization (alist-get context +beancount--completion-cache)
|
||||
(+beancount--collect-unique-recursive regexp n context))
|
||||
(unless (assq context +beancount--completion-cache)
|
||||
(with-memoization (alist-get context +beancount--completion-cache)
|
||||
(+beancount--collect-unique-recursive regexp n context)))
|
||||
(complete-with-action
|
||||
action (sort (hash-table-keys
|
||||
(alist-get context +beancount--completion-cache))
|
||||
|
Reference in New Issue
Block a user