summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3592767)
raw | patch | inline | side by side (parent: 3592767)
author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Wed, 19 Oct 2011 12:22:33 +0000 (13:22 +0100) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Wed, 19 Oct 2011 12:22:33 +0000 (13:22 +0100) |
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/search.tcl | patch | blob | history |
diff --git a/lib/search.tcl b/lib/search.tcl
index fe165724ed3ed8c5645dae327208013d0e2c340c..db88d87c512da485f733fa1ef1f02f7884f3dfc0 100644 (file)
--- a/lib/search.tcl
+++ b/lib/search.tcl
set dir $searchdirn
}
lappend cmd $dir -- $searchstring
- if {$endbound ne {}} {
- set here [eval $cmd [list $start] [list $endbound]]
- } else {
- set here [eval $cmd [list $start]]
- if {$here eq {}} {
- set here [eval $cmd [_get_wrap_anchor $this $dir]]
+ if {[catch {
+ if {$endbound ne {}} {
+ set here [eval $cmd [list $start] [list $endbound]]
+ } else {
+ set here [eval $cmd [list $start]]
+ if {$here eq {}} {
+ set here [eval $cmd [_get_wrap_anchor $this $dir]]
+ }
}
- }
+ } err]} { set here {} }
return $here
}