diff options
author | fvogel <fvogelnew1@free.fr> | 2014-12-06 09:21:56 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-12-06 09:21:56 (GMT) |
commit | ad411a79cf977bbcf1cee08e6a85445fbfd30760 (patch) | |
tree | 23a2e08573fcf6b3c682abaf633d34318d65faec /generic | |
parent | dab416f0125f395a68d68a2001097524b56405a8 (diff) | |
download | tk-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
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 3 |
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; |