소스 검색

bitwarden: fix empty column when not a login item

Sean Farley 7 년 전
부모
커밋
e3011089ae
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      bitwarden.el

+ 3 - 3
bitwarden.el

@@ -430,9 +430,9 @@ IGNORE other arguments."
     (cons folder-id
           (list (cons (concat
                        (bitwarden-pad-to-width (gethash "name" item) 40)
-                       (and login-item
-                            (bitwarden-pad-to-width (gethash "username"
-                                                             login-item) 32))
+                       (bitwarden-pad-to-width
+                        (if login-item (gethash "username" login-item) "")
+                        32)
                        (format-time-string
                         "%Y-%m-%d %T"
                         (date-to-time (bitwarden-pad-to-width