summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2012-01-25 21:56:08 (GMT)
committerfvogel <fvogel@noemail.net>2012-01-25 21:56:08 (GMT)
commit8eb023a123392328846b32ee64bab082d1e9904f (patch)
treef56861ecb86be891ad2a2a119394eabf66cb9aed /generic
parent7f8c105b1c8e87707fb67ddc4f3f1e7c9310a616 (diff)
downloadtk-8eb023a123392328846b32ee64bab082d1e9904f.zip
tk-8eb023a123392328846b32ee64bab082d1e9904f.tar.gz
tk-8eb023a123392328846b32ee64bab082d1e9904f.tar.bz2
[Bug-1754043] and [Bug-2321450]: When - blockcursor is true, the cursor appears as a blinking bar which expands to the right edge of the widget.
FossilOrigin-Name: 85c4a00f0035bffd42d138cd8b57dc04d0d02567
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 144bca9..5f30b11 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -6851,6 +6851,9 @@ TkTextIndexBbox(
if (charWidthPtr != NULL) {
*charWidthPtr = dInfoPtr->maxX - *xPtr;
+ if (*charWidthPtr > textPtr->charWidth) {
+ *charWidthPtr = textPtr->charWidth;
+ }
}
if (*xPtr > dInfoPtr->maxX) {
*xPtr = dInfoPtr->maxX;