Skip to content

Commit 0f81d3a

Browse files
author
Panagiotis Vlantis
committed
Fix: Bug involving popwin compatibility
Given a frame consisting of 3 windows placed side-by-side, one of which being neotree and the widths of the other two being different, execution of the command `popwin:open-popup-window' results in the left-most window being split vertically into two new windows, one wide and one thin.
1 parent bc98dfb commit 0f81d3a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

neotree.el

+5-3
Original file line numberDiff line numberDiff line change
@@ -886,11 +886,13 @@ The description of ARG is in `neotree-enter'."
886886
(around neotree/popwin-popup-buffer activate)
887887
(let ((neo-exists-p (neo-global--window-exists-p)))
888888
(when neo-exists-p
889-
(neo-global--detach))
889+
;; (neo-global--detach)
890+
(neotree-hide))
890891
ad-do-it
891892
(when neo-exists-p
892-
(neo-global--attach)
893-
(neo-global--reset-width))))
893+
;; (neo-global--attach)
894+
;; (neo-global--reset-width)
895+
(neotree-show))))
894896

895897
(defadvice popwin:close-popup-window
896898
(around neotree/popwin-close-popup-window activate)

0 commit comments

Comments
 (0)