summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-02 21:23:09 (GMT)
committerhobbs <hobbs>2002-10-02 21:23:09 (GMT)
commit2ed830f34e5dd2e299da3d0bcf9bbadf0d4cd774 (patch)
tree589e93c501c567ef0a2053dcb5f89a16df6348db /generic/tkText.c
parent1fcd62fbe4387dc3df32f67d94f563ea8308e2c7 (diff)
downloadtk-2ed830f34e5dd2e299da3d0bcf9bbadf0d4cd774.zip
tk-2ed830f34e5dd2e299da3d0bcf9bbadf0d4cd774.tar.gz
tk-2ed830f34e5dd2e299da3d0bcf9bbadf0d4cd774.tar.bz2
* generic/tkText.c (TextBlinkProc): don't blink the cursor unless
it is visible. [Bug #616791] [Patch #614474] (bonfield)
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 95e20c7..58b55a9 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkText.c,v 1.31 2002/08/31 06:12:27 das Exp $
+ * RCS: @(#) $Id: tkText.c,v 1.32 2002/10/02 21:23:10 hobbs Exp $
*/
#include "default.h"
@@ -1945,9 +1945,10 @@ TextBlinkProc(clientData)
textPtr->insertOnTime, TextBlinkProc, (ClientData) textPtr);
}
TkTextMarkSegToIndex(textPtr, textPtr->insertMarkPtr, &index);
- TkTextCharBbox(textPtr, &index, &x, &y, &w, &h);
- TkTextRedrawRegion(textPtr, x - textPtr->insertWidth / 2, y,
- textPtr->insertWidth, h);
+ if (TkTextCharBbox(textPtr, &index, &x, &y, &w, &h) == 0) {
+ TkTextRedrawRegion(textPtr, x - textPtr->insertWidth / 2, y,
+ textPtr->insertWidth, h);
+ }
}
/*