summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-09-30 14:18:12 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-09-30 14:18:12 (GMT)
commit3abe9cb4a4c78af20618a71024884dc7f600b4f0 (patch)
treea1bc839bb061b3dc40e608e427c5f59970498a6a /generic
parent129b1157bd8453512bfed2fe7c9c8e36bdd7c3fc (diff)
downloadtk-3abe9cb4a4c78af20618a71024884dc7f600b4f0.zip
tk-3abe9cb4a4c78af20618a71024884dc7f600b4f0.tar.gz
tk-3abe9cb4a4c78af20618a71024884dc7f600b4f0.tar.bz2
Added explanatory comment
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 6d7820a..4f511a4 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -7542,6 +7542,9 @@ TkTextCharLayoutProc(
* (b) at least one pixel of the character is visible, we have not
* already exceeded the character limit, and the next character is a
* white space character.
+ * In the specific case of 'word' wrapping mode however, include all space
+ * characters following the characters that fit in the space we've got,
+ * even if no pixel of them is visible.
*/
p = segPtr->body.chars + byteOffset;