summaryrefslogtreecommitdiffstats
path: root/generic
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)
commitfdee1e2f1507ac6fb8ae0ef0c8bdf130ac335fd5 (patch)
tree23a2e08573fcf6b3c682abaf633d34318d65faec /generic
parent043017de822a4a6f441858e0ef0497d93d8e2c63 (diff)
downloadtk-fdee1e2f1507ac6fb8ae0ef0c8bdf130ac335fd5.zip
tk-fdee1e2f1507ac6fb8ae0ef0c8bdf130ac335fd5.tar.gz
tk-fdee1e2f1507ac6fb8ae0ef0c8bdf130ac335fd5.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.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;