Skip to content

Commit a5abede

Browse files
committed
Improve completion hash cleanup
1 parent 18a1d2a commit a5abede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eca-chat.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ string."
13131313
:query query
13141314
:contexts (vconcat eca-chat--context))))
13151315
(items (-map #'eca-chat--context-to-completion contexts)))
1316-
(setq-local eca-chat--context-completion-cache (make-hash-table :test 'equal))
1316+
(clrhash eca-chat--context-completion-cache)
13171317
(puthash query items eca-chat--context-completion-cache)
13181318
items))))
13191319

@@ -1326,7 +1326,7 @@ string."
13261326
:params (list :chatId eca-chat--id
13271327
:query query)))
13281328
(items (-map #'eca-chat--command-to-completion commands)))
1329-
(setq-local eca-chat--command-completion-cache (make-hash-table :test 'equal))
1329+
(clrhash eca-chat--command-completion-cache)
13301330
(puthash query items eca-chat--command-completion-cache)
13311331
items))))
13321332

0 commit comments

Comments
 (0)