diff options
author | fvogel <fvogelnew1@free.fr> | 2014-12-23 11:09:50 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-12-23 11:09:50 (GMT) |
commit | 8410740338e3be5223b127941f7d9a4f89b5ce70 (patch) | |
tree | 2153979123ea474273e88b45cb5b8b84ef2f0154 /generic | |
parent | 9acc2ec22a702fc2ececac284fccf4a7698801b2 (diff) | |
download | tk-8410740338e3be5223b127941f7d9a4f89b5ce70.zip tk-8410740338e3be5223b127941f7d9a4f89b5ce70.tar.gz tk-8410740338e3be5223b127941f7d9a4f89b5ce70.tar.bz2 |
Cherrypicked bug fix for Bug [c199ef90a6] - Wrong index returned by @x,y with elided lines at end of text
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 9d6a307..14f843b 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -6754,10 +6754,15 @@ DlineIndexOfX( * We've reached the end of the text. */ + TkTextIndexBackChars(NULL, indexPtr, 1, indexPtr, COUNT_INDICES); return; } if (chunkPtr->nextPtr == NULL) { - TkTextIndexBackChars(NULL, indexPtr, 1, indexPtr, COUNT_INDICES); + /* + * We've reached the end of the display line. + */ + + TkTextIndexBackChars(NULL, indexPtr, 1, indexPtr, COUNT_INDICES); return; } chunkPtr = chunkPtr->nextPtr; |