From 6db14edb65c0489df2628db4592961a95cdbdc16 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sun, 6 Nov 2022 10:27:28 +0100 Subject: [PATCH] Update. --- text-counters.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text-counters.el b/text-counters.el index 6f2e65c..e68e677 100644 --- a/text-counters.el +++ b/text-counters.el @@ -34,10 +34,10 @@ (defun tc/text-counters-string () (interactive) (let ((a (save-excursion - (and (re-search-backward "^--.*--*" nil t) + (and (re-search-backward "^[#% ]*--.*--*" nil t) (match-end 0)))) (b (save-excursion - (and (re-search-forward "^--.*--*" nil t) + (and (re-search-forward "^[#% ]*--.*--*" nil t) (match-beginning 0))))) (when (and a b) -- 2.20.1