Skip to content

Commit

Permalink
[Interface] Fix treemacs-delete-other-windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Pedramfar authored and Alexander-Miller committed Nov 1, 2023
1 parent 95c0747 commit 92e173b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elisp/treemacs-interface.el
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ also not be deleted."
;; that we shouldn't prevent from running, so we just restore treemacs instead of preventing
;; it from being deleted
;; 'no-delete-other-windows could be used instead, but it's only available for emacs 26
(when w
(when (and w (not (equal 'visible (treemacs-current-visibility))))
(treemacs--select-not-visible-window)))))

(defun treemacs-temp-resort-root (&optional sort-method)
Expand Down

0 comments on commit 92e173b

Please sign in to comment.