do not use xor

This commit is contained in:
Boris Buliga 2018-10-17 06:56:40 +03:00
parent d81e75584e
commit 4024b60757
No known key found for this signature in database
GPG key ID: 027328150F064FA8

View file

@ -25,5 +25,6 @@
"Setup the width lock of treemacs buffer based on "Setup the width lock of treemacs buffer based on
`treemacs-lock-width'." `treemacs-lock-width'."
(interactive) (interactive)
(when (xor treemacs--width-is-locked treemacs-lock-width) (unless (eq (not treemacs--width-is-locked)
(not treemacs-lock-width))
(treemacs-toggle-fixed-width))) (treemacs-toggle-fixed-width)))