              (face1 (if active 'powerline-active1 'powerline-inactive1))
              (face2 (if active 'powerline-active2 'powerline-inactive2))
              (face3 (if *init-powerline-shows-rtags-diagnostics*
-                        (my-powerline-theme-buffer-face)
-                      'powerline-active3))
+                        (my-powerline-theme-buffer-face active)
+                      (if active 'powerline-active3 'powerline-inactive3)))
              (separator-left (intern
                               (format "powerline-%s-%s"
                                       powerline-default-separator

                           :background (second (assoc 'base02 solarized-colors)))
       (set-face-attribute 'powerline-inactive2 nil
                           :background (second (assoc 'base02 solarized-colors)))
       (defface powerline-active3
         `((t (:background ,(second (assoc 'base02 solarized-colors))
               :foreground ,(second (assoc 'cyan solarized-colors)))))

        (set-face-attribute 'powerline-active2 nil :background monokai-hl-line)
        (set-face-attribute 'powerline-inactive1 nil :background monokai-hl-line)
        (set-face-attribute 'powerline-inactive2 nil :background monokai-bg)
        (defface powerline-inactive3
          `((t (:background ,monokai-comments :foreground ,background)))
          "Powerline face 3 (buffer name)"
          :group 'powerline)
        (defface powerline-active3
          `((t (:background ,violet :foreground ,monokai-bg)))
          "Powerline face 3 (buffer name)"
