0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-22 12:10:44 +00:00

Fixed the interval for day scattering

It was [0,LIM), now it's [1,LIM]
This commit is contained in:
John Wiegley 2010-12-27 03:34:23 -05:00
parent 55d664e6d3
commit 3922c2cbc1

View file

@ -7911,7 +7911,7 @@ The prefix arg is passed through to the command if possible."
(format "Scatter tasks across how many %sdays: " (format "Scatter tasks across how many %sdays: "
(if arg "week" "")) 7))) (if arg "week" "")) 7)))
(setq cmd (setq cmd
`(let ((distance (random ,(1+ days)))) `(let ((distance (1+ (random ,days))))
(if arg (if arg
(let ((dist distance) (let ((dist distance)
(day-of-week (day-of-week