瀏覽代碼

Fixed the interval for day scattering

It was [0,LIM), now it's [1,LIM]
John Wiegley 14 年之前
父節點
當前提交
3922c2cbc1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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