Let-bind deactivate-mark in mode line code

Closes #34
This commit is contained in:
Vasilij Schneidermann
2015-06-15 08:31:17 +02:00
parent 0cd51f4852
commit 156623960f

View File

@ -488,7 +488,12 @@ is detected, extra key bindings will be set up with
(tag (nth 2 window-config))
(format-string (if (and tag (> (length tag) 0))
eyebrowse-tagged-slot-format
eyebrowse-slot-format)))
eyebrowse-slot-format))
;; NOTE: `format-spec' sets `deactivate-mark' to t which
;; makes `eyebrowse-format-slot' usage in
;; `eyebrowse-mode-line-indicator' always deactivate the mark
;; after activating it as this triggers mode line updates...
deactivate-mark)
(format-spec format-string
(format-spec-make ?s slot ?t tag))))