diff options
author | fvogel <fvogelnew1@free.fr> | 2012-01-26 07:21:56 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-01-26 07:21:56 (GMT) |
commit | 03a1644228c1aa944f69e81c9dc69c26932ed024 (patch) | |
tree | 34127481c337f273879121f320fd31b9d4f8b9ce /generic/tkTextDisp.c | |
parent | 7b67c9d7fc26e929fe3696b840dce11a5d8ed25b (diff) | |
parent | 03a59b0e85ec9611656c4277d58e3202095e158b (diff) | |
download | tk-03a1644228c1aa944f69e81c9dc69c26932ed024.zip tk-03a1644228c1aa944f69e81c9dc69c26932ed024.tar.gz tk-03a1644228c1aa944f69e81c9dc69c26932ed024.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 4eca4ca..249f476 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -6850,6 +6850,9 @@ TkTextIndexBbox( if (charWidthPtr != NULL) { *charWidthPtr = dInfoPtr->maxX - *xPtr; + if (*charWidthPtr > textPtr->charWidth) { + *charWidthPtr = textPtr->charWidth; + } } if (*xPtr > dInfoPtr->maxX) { *xPtr = dInfoPtr->maxX; |