Commit 7c20a7a9 authored by John Paul Wallington's avatar John Paul Wallington
Browse files

(reb-update-overlays): Distinguish between one and several matches in message.

parent 02c04e6f
......@@ -670,9 +670,10 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
(overlay-put overlay 'priority i)))
(setq i (1+ i))))))
(let ((count (if subexp submatches matches)))
(message"%s %smatch(es)%s"
(message"%s %smatch%s%s"
(if (= 0 count) "No" (int-to-string count))
(if subexp "subexpression " "")
(if (= 1 count) "" "es")
(if (and reb-auto-match-limit
(= reb-auto-match-limit count))
" (limit reached)" "")))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment