aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/window.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2006-07-29 11:19:58 +0000
committerEli Zaretskii <[email protected]>2006-07-29 11:19:58 +0000
commit114b3e94ec69f283a82298a1607f1943ec22c540 (patch)
tree13d5449c3e414ec767041167efec37f1ad5bc92e /lisp/window.el
parent2439e18370ef97bfab0339274a322cd65c09c5f3 (diff)
(bw-get-tree): Don't integerp subtree if it's nil.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 2ae1a2c9e7..7810ba4c5b 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -246,9 +246,10 @@ then the smallest tree containing that window is returned."
(windowp window-or-frame))
(error "Not a frame or window: %s" window-or-frame)))
(let ((subtree (bw-find-tree-sub window-or-frame)))
- (if (integerp subtree)
- nil
- (bw-get-tree-1 subtree))))
+ (when subtree
+ (if (integerp subtree)
+ nil
+ (bw-get-tree-1 subtree)))))
(defun bw-get-tree-1 (split)
(if (windowp split)