summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2000-02-01 11:40:57 (GMT)
committerhobbs <hobbs@noemail.net>2000-02-01 11:40:57 (GMT)
commitc7f37f050043d072ff619ff5df5a6067113d99c8 (patch)
treefc24294b9561a6f87e81d0e747ca55219c72119b
parent0dc6dcac81d4b39ee1f8849c7706ef38a4dc1f74 (diff)
downloadtk-c7f37f050043d072ff619ff5df5a6067113d99c8.zip
tk-c7f37f050043d072ff619ff5df5a6067113d99c8.tar.gz
tk-c7f37f050043d072ff619ff5df5a6067113d99c8.tar.bz2
* doc/text.n: clarified docs on what happens during a search with
-count when images/windows are embedded FossilOrigin-Name: 029b6655942cc865ed4354a8f162c0541d99b4ac
-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: