The markers do not need to span the full width anymore.
[elisp.git] / text-counters.el
index 4f08d68..6f2e65c 100644 (file)
 
 (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)