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)))
|
(with-current-buffer (let ((win (minibuffer-selected-window)))
|
||||||
(if (window-live-p win) (window-buffer win)
|
(if (window-live-p win) (window-buffer win)
|
||||||
(current-buffer)))
|
(current-buffer)))
|
||||||
(with-memoization (alist-get context +beancount--completion-cache)
|
(unless (assq context +beancount--completion-cache)
|
||||||
(+beancount--collect-unique-recursive regexp n context))
|
(with-memoization (alist-get context +beancount--completion-cache)
|
||||||
|
(+beancount--collect-unique-recursive regexp n context)))
|
||||||
(complete-with-action
|
(complete-with-action
|
||||||
action (sort (hash-table-keys
|
action (sort (hash-table-keys
|
||||||
(alist-get context +beancount--completion-cache))
|
(alist-get context +beancount--completion-cache))
|
||||||
|
Reference in New Issue
Block a user