diff options
author | Bastien <bzg@gnu.org> | 2020-02-05 09:10:40 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-02-05 09:10:40 +0100 |
commit | 164d30f5abf8d80c9a6960acdbcb9d56bd9df009 (patch) | |
tree | 5e09ac7fc495e3b0a5847249603962ade909fe9f | |
parent | 07e9ad2aa23949f18875f3bbbcd72e28e0b62cf6 (diff) | |
download | org-mode-164d30f5abf8d80c9a6960acdbcb9d56bd9df009.tar.gz |
org-agenda.el: Fix call to `recenter'
* lisp/org-agenda.el (org-agenda-list): Fix call to `recenter'
when `org-agenda-buffer-name' is not known.
-rw-r--r-- | lisp/org-agenda.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 4fef62d..692703c 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4373,7 +4373,7 @@ items if they have an hour specification like [h]h:mm." (insert tbl))) (goto-char (point-min)) (or org-agenda-multi (org-agenda-fit-window-to-buffer)) - (unless (or (not (get-buffer-window)) + (unless (or (not (get-buffer-window org-agenda-buffer-name)) (and (pos-visible-in-window-p (point-min)) (pos-visible-in-window-p (point-max)))) (goto-char (1- (point-max))) |