diff options
author | fvogel <fvogel@noemail.net> | 2012-01-25 21:56:08 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2012-01-25 21:56:08 (GMT) |
commit | 8eb023a123392328846b32ee64bab082d1e9904f (patch) | |
tree | f56861ecb86be891ad2a2a119394eabf66cb9aed /generic | |
parent | 7f8c105b1c8e87707fb67ddc4f3f1e7c9310a616 (diff) | |
download | tk-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.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; |