diff options
Diffstat (limited to 'lisp/window.el')
| -rw-r--r-- | lisp/window.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/window.el b/lisp/window.el index 2ae1a2c9e79..7810ba4c5be 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -246,9 +246,10 @@ then the smallest tree containing that window is returned." | |||
| 246 | (windowp window-or-frame)) | 246 | (windowp window-or-frame)) |
| 247 | (error "Not a frame or window: %s" window-or-frame))) | 247 | (error "Not a frame or window: %s" window-or-frame))) |
| 248 | (let ((subtree (bw-find-tree-sub window-or-frame))) | 248 | (let ((subtree (bw-find-tree-sub window-or-frame))) |
| 249 | (if (integerp subtree) | 249 | (when subtree |
| 250 | nil | 250 | (if (integerp subtree) |
| 251 | (bw-get-tree-1 subtree)))) | 251 | nil |
| 252 | (bw-get-tree-1 subtree))))) | ||
| 252 | 253 | ||
| 253 | (defun bw-get-tree-1 (split) | 254 | (defun bw-get-tree-1 (split) |
| 254 | (if (windowp split) | 255 | (if (windowp split) |