diff options
author | fvogel <fvogelnew1@free.fr> | 2012-01-26 07:20:11 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-01-26 07:20:11 (GMT) |
commit | 03a59b0e85ec9611656c4277d58e3202095e158b (patch) | |
tree | d71f0467bbf30890078b3b18809ede0ac51be9d1 /generic/tkTextDisp.c | |
parent | 9db0574438d863621647428db163a9720fa1428c (diff) | |
parent | 0c6f1728590dc6ab2ad6d99559d75aaaecf9baa4 (diff) | |
download | tk-03a59b0e85ec9611656c4277d58e3202095e158b.zip tk-03a59b0e85ec9611656c4277d58e3202095e158b.tar.gz tk-03a59b0e85ec9611656c4277d58e3202095e158b.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.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 3 |
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; |