summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-06 09:21:56 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-06 09:21:56 (GMT)
commitad411a79cf977bbcf1cee08e6a85445fbfd30760 (patch)
tree23a2e08573fcf6b3c682abaf633d34318d65faec
parentdab416f0125f395a68d68a2001097524b56405a8 (diff)
downloadtk-ad411a79cf977bbcf1cee08e6a85445fbfd30760.zip
tk-ad411a79cf977bbcf1cee08e6a85445fbfd30760.tar.gz
tk-ad411a79cf977bbcf1cee08e6a85445fbfd30760.tar.bz2
indexPtr->byteIndex == 0 is the beginning of a display line only if indexPtr is not elided
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 538c59d..59efe04 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4780,7 +4780,8 @@ TextRedrawTag(
* the line containing the previous character.
*/
- if (curIndexPtr->byteIndex == 0) {
+ if ((curIndexPtr->byteIndex == 0)
+ && !TkTextIsElided(textPtr, curIndexPtr, NULL)) {
dlPtr = FindDLine(textPtr, dlPtr, curIndexPtr);
} else {
TkTextIndex tmp;