Skip to content

Commit acedbe7

Browse files
author
Panagiotis Vlantis
committed
Fix: Bug involving command balance-windows
Given a frame with three windows placed side-by-side (one being neotree) execution of the command `balance-windows' assigns uneven widths to the other two.
1 parent 0f81d3a commit acedbe7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

neotree.el

+8-7
Original file line numberDiff line numberDiff line change
@@ -871,13 +871,14 @@ The description of ARG is in `neotree-enter'."
871871
(around neotree-balance-windows activate)
872872
"Fix neotree inhibits balance-windows."
873873
(if (neo-global--window-exists-p)
874-
(let (old-width)
875-
(neo-global--with-window
876-
(setq old-width (window-width)))
877-
(neo-buffer--with-resizable-window
878-
ad-do-it)
879-
(neo-global--with-window
880-
(neo-global--set-window-width old-width)))
874+
(progn (neotree-hide) ad-do-it (neotree-show))
875+
;; (let (old-width)
876+
;; (neo-global--with-window
877+
;; (setq old-width (window-width)))
878+
;; (neo-buffer--with-resizable-window
879+
;; ad-do-it)
880+
;; (neo-global--with-window
881+
;; (neo-global--set-window-width old-width)))
881882
ad-do-it))
882883

883884
(eval-after-load 'popwin

0 commit comments

Comments
 (0)