Selaa lähdekoodia

org-element: Small cache fix

* lisp/org-element.el (org-element--cache-before-change): Ignore case
  sensitivity when looking for a modified sensitive line.
Nicolas Goaziou 10 vuotta sitten
vanhempi
commit
e46c62d96f
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      lisp/org-element.el

+ 2 - 1
lisp/org-element.el

@@ -5434,7 +5434,8 @@ text.  See `before-change-functions' for more information."
 	      (concat
 	       "\\(" (org-with-limited-levels org-outline-regexp-bol) "\\)" "\\|"
 	       org-element--cache-closing-line "\\|"
-	       org-element--cache-opening-line)))
+	       org-element--cache-opening-line))
+	     (case-fold-search t))
 	 (setq org-element--cache-change-warning
 	       (cond ((not (re-search-forward sensitive-re bottom t)) nil)
 		     ((and (match-beginning 1)