Skip to content

Commit

Permalink
Merge pull request from SqrtMinusOne
Browse files Browse the repository at this point in the history
Account for org-extend-today-until in org-journal-open-current-file
  • Loading branch information
casch-at authored Feb 18, 2024
2 parents b154887 + 129dede commit e754cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion org-journal.el
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,9 @@ If NO-SELECT is non-nil, open it, but don't show it."
(defun org-journal-open-current-journal-file ()
"Open the current journal file"
(interactive)
(let ((org-journal-file (org-journal--get-entry-path)))
(let ((org-journal-file (org-journal--get-entry-path
(time-subtract (current-time)
(* 3600 org-extend-today-until)))))
(if (file-exists-p org-journal-file)
(progn
(funcall org-journal-find-file org-journal-file)
Expand Down

0 comments on commit e754cfe

Please sign in to comment.