Merge branch 'maint'

This commit is contained in:
Nicolas Goaziou 2018-04-05 16:46:11 +02:00
commit 717b0f039d
1 changed files with 3 additions and 2 deletions

View File

@ -4274,8 +4274,9 @@ 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 (and (pos-visible-in-window-p (point-min))
(pos-visible-in-window-p (point-max)))
(unless (or (not (get-buffer-window))
(and (pos-visible-in-window-p (point-min))
(pos-visible-in-window-p (point-max))))
(goto-char (1- (point-max)))
(recenter -1)
(if (not (pos-visible-in-window-p (or start-pos 1)))