branch: externals/kiwix
commit 11efae88a7d0e02bcf24853f732d365336bc4bfe
Merge: 4e3382e2b6 06f144fadd
Author: stardiviner <numbch...@gmail.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #8 from mattbeshara/local-server-save-library-list
    
    Save the library list when fetching from a local server
---
 kiwix.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 8d7b411c51..d6963dd455 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -204,8 +204,9 @@ Set it to ‘t’ will use Emacs built-in ‘completing-read’."
    ((or (eq kiwix-server-type 'kiwix-serve-local)
         (eq kiwix-server-type 'docker-local))
     (when (and (file-directory-p kiwix-zim-dir) (file-readable-p 
kiwix-zim-dir))
-      (mapcar #'kiwix--get-library-name
-              (directory-files kiwix-zim-dir nil ".*\\.zim\\'"))))))
+      (setq kiwix-libraries
+            (mapcar #'kiwix--get-library-name
+                    (directory-files kiwix-zim-dir nil ".*\\.zim\\'")))))))
 
 (defun kiwix-select-library (&optional filter)
   "Select Kiwix library name."

Reply via email to