From a7ac3c95aefe0dcd187bf66e8d86ee148193f397 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 1 Feb 2000 11:40:58 +0000 Subject: * doc/text.n: clarified docs on what happens during a search with -count when images/windows are embedded --- doc/text.n | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/text.n b/doc/text.n index d20f070..eb88142 100644 --- a/doc/text.n +++ b/doc/text.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: text.n,v 1.5 2000/01/21 03:54:21 hobbs Exp $ +'\" RCS: @(#) $Id: text.n,v 1.6 2000/02/01 11:40:58 hobbs Exp $ '\" .so man.macros .TH text n 4.0 Tk "Tk Built-In Commands" @@ -1060,11 +1060,15 @@ Ignore case differences between the pattern and the text. .TP \fB\-count\fI varName\fR The argument following \fB\-count\fR gives the name of a variable; -if a match is found, the number of characters in the matching -range will be stored in the variable. +if a match is found, the number of index positions between beginning and +end of the matching range will be stored in the variable. If there are no +embedded images or windows in the matching range, this is equivalent to the +number of characters matched. In either case, the range \fImatchIdx\fR to +\fImatchIdx + $count chars\fR will return the entire matched text. .TP \fB\-elide\fR -Find elidden (hidden) text as well. By default only displayed text is found. +Find elidden (hidden) text as well. By default only displayed text is +searched. .TP \fB\-\|\-\fR This switch has no effect except to terminate the list of switches: -- cgit v0.12