| Ticket UUID: | 1281228 | |||
| Title: | Text widget -strictlimits option ignored and undocumented | |||
| Type: | Bug | Version: | obsolete: 8.5a3 | |
| Submitter: | fvogel | Created on: | 2005-09-03 12:28:57 | |
| Subsystem: | 18. [text] | Assigned To: | vincentdarley | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2014-02-19 21:42:28 | |
| Resolution: | Fixed | Closed By: | vincentdarley | |
| Closed on: | 2005-10-10 10:36:03 | |||
| Description: |
The text widget -strictlimits option for search that was
part of the already implemented TIP 155 is
undocumented.
Moreover, this option does not spit any error when used,
but it is apparently simply ignored.
Test case:
text .t
pack .t
.t insert 1.0 "Hello world!\n"
.t insert 2.0 "This is a test\n"
set match [.t search -strictlimits -- \
"world" 1.3 1.8]
puts $match
The search occurs between positions 1.3 and 1.8, i.e.
the search area does not include the full word "world"
that is searched for.
Nevertheless, a match is found, which means that .t
search does not check whether the match it finds is
entirely included in the search area or not, despite the
presence of the -strictlimits option.
In a clt thread (see
http://groups.google.fr/group/comp.lang.tcl/browse_threa
d/thread/e80f2586408ab598/2a3660c107cd21ba?
lnk=st&q=search+unexpected+group:comp.lang.tcl&rnu
m=1&hl=fr#2a3660c107cd21ba) I was told that some of
the implementation of -strictlimits was forgotten, e.g. for
regexps. The example above is however no regexp, and
the scope of this bug is probably not limited to this sort
of search.
Francois
| |||
| User Comments: |
vincentdarley added on 2005-10-10 17:36:03:
Logged In: YES user_id=32170 Fixed in cvs head. vincentdarley added on 2005-09-15 05:15:18: Logged In: YES user_id=32170 I have a patch for this, but the changes are currently mixed in my code base with tip#256, so I'll wait for a vote on that before committing anything. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki