summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-04-20 20:58:30 +0000
committerRichard M. Stallman <rms@gnu.org>2004-04-20 20:58:30 +0000
commit6b3b4dbbfcf65ffde08d3b82e5b29db2bb177204 (patch)
tree0f50810f2c7d4d87e0b2ab9c9e0fc16228e8950f /lisp/window.el
parentda932079d0f7a35c0c7567a9c5fd4dbbbe7af077 (diff)
downloademacs-6b3b4dbbfcf65ffde08d3b82e5b29db2bb177204.tar.gz
(split-window-save-restore-data):
Don't update the data if OLD-INFO is nil.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 91b91cfb158..2b5a4ab161d 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -327,8 +327,9 @@ new mode line."
(with-current-buffer (window-buffer)
(if view-mode
(let ((old-info (assq old-w view-return-to-alist)))
- (push (cons new-w (cons (and old-info (car (cdr old-info))) t))
- view-return-to-alist)))
+ (if old-info
+ (push (cons new-w (cons (car (cdr old-info)) t))
+ view-return-to-alist))))
new-w))
(defun split-window-horizontally (&optional arg)