summaryrefslogtreecommitdiffstats
path: root/library/entry.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-10 09:05:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-10 09:05:52 (GMT)
commit9bb4984cdd2ade22a76663a8ec0122ccc0c16d64 (patch)
tree101e4bb1904c9e988f3de88eea7f00fd7e93111a /library/entry.tcl
parent2695bc632d5a2ea27a7145a659dac199eaa54d55 (diff)
parent2cb17178d24e69583918c1496b879409b638827d (diff)
downloadtk-9bb4984cdd2ade22a76663a8ec0122ccc0c16d64.zip
tk-9bb4984cdd2ade22a76663a8ec0122ccc0c16d64.tar.gz
tk-9bb4984cdd2ade22a76663a8ec0122ccc0c16d64.tar.bz2
Merge enhanced-index branch. Add two new functions ::tk::wordBreakBefore/::tk::wordBreakAfter
Diffstat (limited to 'library/entry.tcl')
-rw-r--r--library/entry.tcl12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index dc29418..a229fb7 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -376,17 +376,17 @@ proc ::tk::EntryMouseSelect {w x} {
}
word {
if {$cur < $anchor} {
- set before [tcl_wordBreakBefore [$w get] $cur]
- set after [tcl_wordBreakAfter [$w get] $anchor-1]
+ set before [tk::wordBreakBefore [$w get] $cur]
+ set after [tk::wordBreakAfter [$w get] $anchor-1]
} elseif {$cur > $anchor} {
- set before [tcl_wordBreakBefore [$w get] $anchor]
- set after [tcl_wordBreakAfter [$w get] $cur-1]
+ set before [tk::wordBreakBefore [$w get] $anchor]
+ set after [tk::wordBreakAfter [$w get] $cur-1]
} else {
if {[$w index @$Priv(pressX)] < $anchor} {
incr anchor -1
}
- set before [tcl_wordBreakBefore [$w get] $anchor]
- set after [tcl_wordBreakAfter [$w get] $anchor]
+ set before [tk::wordBreakBefore [$w get] $anchor]
+ set after [tk::wordBreakAfter [$w get] $anchor]
}
if {$before < 0} {
set before 0