Sfoglia il codice sorgente

Merge pull request #1 from RobotDisco/fix-non-auto-unlock-process

Fix bug in bitwarden-unlock when not using bitwarden-automatic-unlock
Sean Farley 6 anni fa
parent
commit
685f55bd86
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      bitwarden.el

+ 4 - 3
bitwarden.el

@@ -4,7 +4,7 @@
 
 ;; Author: Sean Farley
 ;; URL: https://github.com/seanfarley/emacs-bitwarden
-;; Version: 0.1.1
+;; Version: 0.1.2
 ;; Created: 2018-09-04
 ;; Package-Requires: ((emacs "24.4"))
 ;; Keywords: extensions processes bw bitwarden
@@ -198,8 +198,9 @@ since that could be set yet could be expired or incorrect.
 If run interactively PRINT-MESSAGE gets set and messages are
 printed to minibuffer."
   (interactive "p")
-  (let ((pass (when bitwarden-automatic-unlock
-                (funcall bitwarden-automatic-unlock))))
+  (let ((pass (if bitwarden-automatic-unlock
+                  (funcall bitwarden-automatic-unlock)
+                "")))
     (bitwarden--raw-unlock (list "unlock" pass) print-message)))
 
 ;;;###autoload