From 4024b60757e105a389def9bb58f028f3d4a44aa0 Mon Sep 17 00:00:00 2001 From: Boris Buliga Date: Wed, 17 Oct 2018 06:56:40 +0300 Subject: [PATCH] do not use xor --- layers/+filetree/treemacs/funcs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/+filetree/treemacs/funcs.el b/layers/+filetree/treemacs/funcs.el index be400dbff..a8662ccfa 100644 --- a/layers/+filetree/treemacs/funcs.el +++ b/layers/+filetree/treemacs/funcs.el @@ -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)))