Explorar o código

org.el: make org-time-stamp also keep warning periods.

... not only repeaters.

Thanks to Karl Voit for spotting this.
Bastien Guerry %!s(int64=14) %!d(string=hai) anos
pai
achega
f9cc3f525b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -14386,7 +14386,7 @@ at the cursor, it will be modified."
 	 	     (save-match-data
 	 	       (end-of-line)
 	 	       (when (re-search-backward
-			      "\\([.+]+[0-9]+[dwmy]\\(?:[/ ][-+]?[0-9]+[dwmy]\\)?\\) ?"
+			      "\\([.+-]+[0-9]+[dwmy]\\(?:[/ ][-+]?[0-9]+[dwmy]\\)?\\) ?"
 			      (- (point) 20) t)
 			 (match-string 1)))))
 	 org-time-was-given org-end-time-was-given time)