Browse Source

Fixed the interval for day scattering

It was [0,LIM), now it's [1,LIM]
John Wiegley 14 years ago
parent
commit
3922c2cbc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

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