소스 검색

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