From 976aa30657539af13ad226ad33b27b25cc4d9374 Mon Sep 17 00:00:00 2001 From: svkalinin Date: Thu, 24 Nov 2022 10:46:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/editor.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/editor.tcl b/lib/editor.tcl index 702e66a..3144311 100644 --- a/lib/editor.tcl +++ b/lib/editor.tcl @@ -930,11 +930,12 @@ namespace eval Editor { } proc FindFunction {txt findString} { + puts "txt: $txt, $findString" set pos "0.0" $txt see $pos set line [lindex [split $pos "."] 0] set x [lindex [split $pos "."] 1] - set pattern "$findString\\W" + set pattern "$findString\(\\W\|\$\)" set pos [$txt search -nocase -regexp $pattern $line.$x end] $txt mark set insert $pos $txt see $pos