diff options
author | fvogelnew1@free.fr <fvogel> | 2012-01-25 21:56:08 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2012-01-25 21:56:08 (GMT) |
commit | ec528cf439e1b594e0f90d98a7aa5cd85ce3867c (patch) | |
tree | f56861ecb86be891ad2a2a119394eabf66cb9aed | |
parent | 77471df1d7a8cb7e9b5b28d34bf7d3f4b4816b56 (diff) | |
download | tk-ec528cf439e1b594e0f90d98a7aa5cd85ce3867c.zip tk-ec528cf439e1b594e0f90d98a7aa5cd85ce3867c.tar.gz tk-ec528cf439e1b594e0f90d98a7aa5cd85ce3867c.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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tkTextDisp.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2012-01-?? Francois Vogel <fvogelnew1@free.fr> + + * generic/tkTextDisp.c: [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. + 2012-01-25 Francois Vogel <fvogelnew1@free.fr> * generic/tkText.c: Don't increase the epoch twice 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; |