From: Francois Fleuret Date: Sun, 10 Mar 2019 12:18:08 +0000 (+0100) Subject: The markers do not need to span the full width anymore. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=elisp.git;a=commitdiff_plain;h=e8563b3d9852fdad0637e2a25a22375100b45aa3 The markers do not need to span the full width anymore. --- diff --git a/text-counters.el b/text-counters.el index 4f08d68..6f2e65c 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)