summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-02-01 11:40:58 (GMT)
committerhobbs <hobbs>2000-02-01 11:40:58 (GMT)
commita7ac3c95aefe0dcd187bf66e8d86ee148193f397 (patch)
treefc24294b9561a6f87e81d0e747ca55219c72119b /doc
parent2f08437d455593446551d06e604537e66969db07 (diff)
downloadtk-a7ac3c95aefe0dcd187bf66e8d86ee148193f397.zip
tk-a7ac3c95aefe0dcd187bf66e8d86ee148193f397.tar.gz
tk-a7ac3c95aefe0dcd187bf66e8d86ee148193f397.tar.bz2
* doc/text.n: clarified docs on what happens during a search with
-count when images/windows are embedded
Diffstat (limited to 'doc')
-rw-r--r--doc/text.n12
1 files 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: