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
1 changed files with 2 additions and 1 deletions

View File

@ -25,5 +25,6 @@
"Setup the width lock of treemacs buffer based on
`treemacs-lock-width'."
(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)))